allure-rspec 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +11 -8
- data/lib/allure-rspec/formatter.rb +2 -2
- data/lib/allure-rspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c09d319b4f770d06ade3103b596607c4bfdfd03
|
4
|
+
data.tar.gz: cafde30c320995275c09c5c7c2e442f3ec37dc05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a91f2cafc77fd94f3c8a70f624277eda2130b204081e4a5d6b60f85a27a1e66d851c714298f79dd0a169fa038f1f0a71ce76b15066ef6e060f56dedf291929d3
|
7
|
+
data.tar.gz: 979bdd3c7e04bdb55a91ef477ad6d5e1e8a5712695e9feed0f886f455ad603e30b4a34c0b924c3003767304e53a573fd3f9cdf3472c179f7b66dd8a014e6607f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# Allure RSpec Adaptor
|
2
2
|
|
3
|
-
Adaptor to use the Allure framework along with the RSpec
|
3
|
+
Adaptor to use the Allure framework along with the RSpec. See [an example](https://github.com/allure-examples/allure-rspec-example) project to take a quick tour.
|
4
4
|
|
5
5
|
## What's new
|
6
6
|
|
7
|
+
* *0.6.1* - Upgraded to RSpec3. Not compatible with RSpec2 anymore.
|
7
8
|
* *0.5.1* - Migrating to allure-ruby-api.
|
8
9
|
* *0.4.2* - Support for labels (feature,story,severity,language,framework).
|
9
10
|
* *0.4.1* - Support for before/after(:step) hooks.
|
@@ -11,7 +12,9 @@ Adaptor to use the Allure framework along with the RSpec
|
|
11
12
|
|
12
13
|
## Setup
|
13
14
|
|
14
|
-
Add the dependency to your Gemfile
|
15
|
+
Add the dependency to your Gemfile. Choose the version carefully:
|
16
|
+
* 0.5.x - for RSpec2.
|
17
|
+
* 0.6.x - for RSpec3.
|
15
18
|
|
16
19
|
```ruby
|
17
20
|
gem 'allure-rspec'
|
@@ -50,21 +53,21 @@ describe MySpec, :feature => "Some feature", :severity => :normal do
|
|
50
53
|
"string".should == "string"
|
51
54
|
end
|
52
55
|
|
53
|
-
it "should be steps enabled", :story => ["First story", "Second story"] do
|
56
|
+
it "should be steps enabled", :story => ["First story", "Second story"] do |e|
|
54
57
|
|
55
|
-
step "step1" do
|
56
|
-
attach_file "screenshot1", take_screenshot_as_file
|
58
|
+
e.step "step1" do |s|
|
59
|
+
s.attach_file "screenshot1", take_screenshot_as_file
|
57
60
|
end
|
58
61
|
|
59
|
-
step "step2" do
|
62
|
+
e.step "step2" do
|
60
63
|
5.should be > 0
|
61
64
|
end
|
62
65
|
|
63
|
-
step "step3" do
|
66
|
+
e.step "step3" do
|
64
67
|
0.should == 0
|
65
68
|
end
|
66
69
|
|
67
|
-
attach_file "screenshot2", take_screenshot_as_file
|
70
|
+
e.attach_file "screenshot2", take_screenshot_as_file
|
68
71
|
end
|
69
72
|
end
|
70
73
|
```
|
@@ -34,8 +34,8 @@ module AllureRSpec
|
|
34
34
|
def example_passed(example)
|
35
35
|
res = example.example.execution_result
|
36
36
|
AllureRubyAdaptorApi::Builder.stop_test(
|
37
|
-
example.example_group.description,
|
38
|
-
example.description.to_s,
|
37
|
+
example.example.example_group.description,
|
38
|
+
example.example.description.to_s,
|
39
39
|
{
|
40
40
|
:status => res.status,
|
41
41
|
:finished_at => res.finished_at,
|
data/lib/allure-rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Sadykov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -111,6 +111,6 @@ rubyforge_project:
|
|
111
111
|
rubygems_version: 2.0.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: allure-rspec-0.6.
|
114
|
+
summary: allure-rspec-0.6.3
|
115
115
|
test_files: []
|
116
116
|
has_rdoc:
|