allure-rspec 0.6.9 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/allure-rspec/formatter.rb +3 -3
- data/lib/allure-rspec/version.rb +1 -1
- data/spec/extend_steps_spec.rb +11 -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: 2a95bfdbc3c67888d8549885986d84faea4dc4ea
|
4
|
+
data.tar.gz: 6c1ed31afff186e89bb5a2b8f8189a3e621ca4b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e72a1af9a1423a576708b2cd741740daef0607a3c2d89ae9c2143c1b03e544006279a49bd053a200d826c1ece59c68d88a75f926629ba1ef83a26aad028872f0
|
7
|
+
data.tar.gz: 5f9eab034b615ac1951bff6a675e0a213b3d3ff36d26cf95b1ddeb05aeab3c6155babf6b4ea526e5604cb60eac057068e6057b1eaedefd203143b18fb8dcddd8
|
data/README.md
CHANGED
@@ -13,7 +13,8 @@ See the [releases](https://github.com/allure-framework/allure-rspec/releases) ta
|
|
13
13
|
|
14
14
|
Add the dependency to your Gemfile. Choose the version carefully:
|
15
15
|
* 0.5.x - for RSpec2.
|
16
|
-
* 0.6.
|
16
|
+
* <= 0.6.7 - for RSpec < 3.2.
|
17
|
+
* >= 0.6.9 - for RSpec >= 3.2.
|
17
18
|
|
18
19
|
```ruby
|
19
20
|
gem 'allure-rspec'
|
@@ -34,7 +35,7 @@ within your current directory.
|
|
34
35
|
|
35
36
|
```ruby
|
36
37
|
AllureRSpec.configure do |c|
|
37
|
-
c.output_dir = "/whatever/you/like" # default: allure
|
38
|
+
c.output_dir = "/whatever/you/like" # default: gen/allure-results
|
38
39
|
c.clean_dir = false # clean the output directory first? (default: true)
|
39
40
|
end
|
40
41
|
```
|
@@ -53,16 +53,16 @@ module AllureRSpec
|
|
53
53
|
private
|
54
54
|
|
55
55
|
def description(data, attr = :full_description)
|
56
|
-
((data.respond_to?(attr)) ?
|
56
|
+
((((data.respond_to?(attr)) ?
|
57
57
|
data.send(attr) : data.metadata[attr]) ||
|
58
|
-
description(data, :description)
|
58
|
+
description(data, :description)) || '').strip
|
59
59
|
end
|
60
60
|
|
61
61
|
def stop_test(example, opts = {})
|
62
62
|
res = example.execution_result
|
63
63
|
AllureRubyAdaptorApi::Builder.stop_test(
|
64
64
|
description(example.example_group).to_s,
|
65
|
-
description(example).to_s,
|
65
|
+
(example.metadata[:description_args].size== 0) ? description(example.example_group) : description(example).to_s,
|
66
66
|
{
|
67
67
|
:status => res.status,
|
68
68
|
:finished_at => res.finished_at,
|
data/lib/allure-rspec/version.rb
CHANGED
data/spec/extend_steps_spec.rb
CHANGED
@@ -47,7 +47,7 @@ describe AllureRSpec, :feature => "Basics" do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
e.step "step3" do
|
50
|
-
expect(0).to
|
50
|
+
expect(0).to eq(1)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -73,4 +73,14 @@ describe AllureRSpec, :feature => "Basics" do
|
|
73
73
|
|
74
74
|
it "is a pending example"
|
75
75
|
|
76
|
+
context "some context" do
|
77
|
+
it do |e|
|
78
|
+
expect("aa").to eq("aa")
|
79
|
+
end
|
80
|
+
|
81
|
+
it do |e|
|
82
|
+
expect(5).to eq(6)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
76
86
|
end
|
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Sadykov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -113,6 +113,6 @@ rubyforge_project:
|
|
113
113
|
rubygems_version: 2.0.3
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
|
-
summary: allure-rspec-0.
|
116
|
+
summary: allure-rspec-0.7.0
|
117
117
|
test_files: []
|
118
118
|
has_rdoc:
|