allure-rspec 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/allure-rspec.gemspec +1 -1
- data/lib/allure-rspec.rb +2 -2
- data/lib/allure-rspec/dsl.rb +3 -3
- data/lib/allure-rspec/formatter.rb +6 -6
- data/lib/allure-rspec/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9df9335ecea31049962ac676e0824d6d211159
|
4
|
+
data.tar.gz: 5c8c05b6faa23a9a052795619d0dd29c7f306ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67714ea2c609a4c646f3eb69285456f74662c5ce49f4f90fbaab9aed838d04730f30803055d67dc9668ebcdc47b559fd19600ac0e0825882e8d4b1b491abdd82
|
7
|
+
data.tar.gz: fea8af00c3ead59fd3f4d2283010c228f6226308a09b9a9522cad81c58822c823f15c8ad4fe4121c6650f825f1ac2ee6f0bbe7a34e848bad2b1a4048d359a1c6
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
allure-rspec (0.5.
|
5
|
-
allure-ruby-api (= 0.6)
|
4
|
+
allure-rspec (0.5.2)
|
5
|
+
allure-ruby-adaptor-api (= 0.6.1)
|
6
6
|
rspec (~> 2.14.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
allure-ruby-api (0.6)
|
11
|
+
allure-ruby-adaptor-api (0.6.1)
|
12
12
|
mimemagic
|
13
13
|
nokogiri (~> 1.6.0)
|
14
14
|
rspec (~> 2.14.0)
|
@@ -38,7 +38,7 @@ PLATFORMS
|
|
38
38
|
|
39
39
|
DEPENDENCIES
|
40
40
|
allure-rspec!
|
41
|
-
allure-ruby-api (= 0.6)
|
41
|
+
allure-ruby-adaptor-api (= 0.6.1)
|
42
42
|
bundler
|
43
43
|
rake
|
44
44
|
rspec (~> 2.14.0)
|
data/allure-rspec.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ['lib']
|
20
20
|
|
21
21
|
s.add_dependency 'rspec', '~> 2.14.0'
|
22
|
-
s.add_dependency 'allure-ruby-api', '0.6'
|
22
|
+
s.add_dependency 'allure-ruby-adaptor-api', '0.6.1'
|
23
23
|
|
24
24
|
s.add_development_dependency 'bundler'
|
25
25
|
s.add_development_dependency 'rake'
|
data/lib/allure-rspec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'allure-ruby-api'
|
1
|
+
require 'allure-ruby-adaptor-api'
|
2
2
|
require 'allure-rspec/version'
|
3
3
|
require 'allure-rspec/formatter'
|
4
4
|
require 'allure-rspec/adaptor'
|
@@ -42,7 +42,7 @@ module AllureRSpec
|
|
42
42
|
class << self
|
43
43
|
def configure(&block)
|
44
44
|
yield Config
|
45
|
-
|
45
|
+
AllureRubyAdaptorApi.configure {|c|
|
46
46
|
c.output_dir = Config.output_dir
|
47
47
|
}
|
48
48
|
end
|
data/lib/allure-rspec/dsl.rb
CHANGED
@@ -13,16 +13,16 @@ module AllureRSpec
|
|
13
13
|
def step(step, &block)
|
14
14
|
suite = self.example.metadata[:example_group][:description_args].first
|
15
15
|
test = self.example.metadata[:description]
|
16
|
-
|
16
|
+
AllureRubyAdaptorApi::Builder.start_step(suite, test, step)
|
17
17
|
__with_step step, &block
|
18
|
-
|
18
|
+
AllureRubyAdaptorApi::Builder.stop_step(suite, test, step)
|
19
19
|
end
|
20
20
|
|
21
21
|
def attach_file(title, file, opts = {})
|
22
22
|
suite = self.example.metadata[:example_group][:description_args].first
|
23
23
|
test = self.example.metadata[:description]
|
24
24
|
step = current_step
|
25
|
-
|
25
|
+
AllureRubyAdaptorApi::Builder.add_attachment suite, test, opts.merge(:file => file, :title => title, :step => step)
|
26
26
|
end
|
27
27
|
|
28
28
|
private
|
@@ -8,7 +8,7 @@ module AllureRSpec
|
|
8
8
|
ALLOWED_LABELS = [:feature, :story, :severity, :language, :framework]
|
9
9
|
|
10
10
|
def example_failed(example)
|
11
|
-
|
11
|
+
AllureRubyAdaptorApi::Builder.stop_test(
|
12
12
|
example.metadata[:example_group][:description_args].first,
|
13
13
|
example.metadata[:description],
|
14
14
|
example.metadata[:execution_result].merge(
|
@@ -20,17 +20,17 @@ module AllureRSpec
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def example_group_finished(group)
|
23
|
-
|
23
|
+
AllureRubyAdaptorApi::Builder.stop_suite(group.metadata[:example_group][:description_args].first)
|
24
24
|
super
|
25
25
|
end
|
26
26
|
|
27
27
|
def example_group_started(group)
|
28
|
-
|
28
|
+
AllureRubyAdaptorApi::Builder.start_suite(group.metadata[:example_group][:description_args].first, labels(group))
|
29
29
|
super
|
30
30
|
end
|
31
31
|
|
32
32
|
def example_passed(example)
|
33
|
-
|
33
|
+
AllureRubyAdaptorApi::Builder.stop_test(
|
34
34
|
example.metadata[:example_group][:description_args].first,
|
35
35
|
example.metadata[:description],
|
36
36
|
example.metadata[:execution_result].merge(:caller => example.metadata[:caller])
|
@@ -45,7 +45,7 @@ module AllureRSpec
|
|
45
45
|
def example_started(example)
|
46
46
|
suite = example.metadata[:example_group][:description_args].first
|
47
47
|
test = example.metadata[:description]
|
48
|
-
|
48
|
+
AllureRubyAdaptorApi::Builder.start_test(suite, test, labels(example))
|
49
49
|
super
|
50
50
|
end
|
51
51
|
|
@@ -59,7 +59,7 @@ module AllureRSpec
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def stop
|
62
|
-
|
62
|
+
AllureRubyAdaptorApi::Builder.build!
|
63
63
|
super
|
64
64
|
end
|
65
65
|
|
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.5.
|
4
|
+
version: 0.5.2
|
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-08-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.14.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: allure-ruby-api
|
28
|
+
name: allure-ruby-adaptor-api
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.6.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.6.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,5 +111,5 @@ rubyforge_project:
|
|
111
111
|
rubygems_version: 2.0.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: allure-rspec-0.5.
|
114
|
+
summary: allure-rspec-0.5.2
|
115
115
|
test_files: []
|