allure-rspec 0.3.3 → 0.3.4
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/lib/allure-rspec/adaptor.rb +3 -1
- data/lib/allure-rspec/builder.rb +1 -1
- data/lib/allure-rspec/formatter.rb +4 -1
- data/lib/allure-rspec/version.rb +1 -1
- data/spec/another_spec.rb +13 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94fdce22859d8df7204968151db9efb0cade07aa
|
4
|
+
data.tar.gz: cd36d1f23992e382b80e403409c6c0302082d5df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3880801f35eee981a6b783956b57543b365409b2638f508cac7f1fabb73ab699d88d9c026bde1f59a237c3e2a971d594a8e7b89e59f7146c555be1c7591f972c
|
7
|
+
data.tar.gz: c9c303a719d88f107c074a35445cfdac20a1ccca46dc1de498f8bb816764a2ed50bab6a1f516d57d5504b7a34503bafec7edf34e9b70d55d2fd96830a8ba9f08
|
data/Gemfile.lock
CHANGED
data/lib/allure-rspec/adaptor.rb
CHANGED
@@ -2,7 +2,9 @@ module AllureRSpec
|
|
2
2
|
module Adaptor
|
3
3
|
def self.included(base)
|
4
4
|
base.send :include, AllureRSpec::DSL
|
5
|
-
RSpec.configuration.
|
5
|
+
if RSpec.configuration.formatters.find_all {|f| f.is_a?(AllureRSpec::Formatter)}.empty?
|
6
|
+
RSpec.configuration.add_formatter(AllureRSpec::Formatter)
|
7
|
+
end
|
6
8
|
end
|
7
9
|
end
|
8
10
|
end
|
data/lib/allure-rspec/builder.rb
CHANGED
@@ -52,7 +52,7 @@ module AllureRSpec
|
|
52
52
|
self.suites[suite][:tests][test][:status] = result[:status]
|
53
53
|
if (result[:status].to_sym != :passed)
|
54
54
|
self.suites[suite][:tests][test][:failure] = {
|
55
|
-
:stacktrace => escape((result[:
|
55
|
+
:stacktrace => escape(((result[:exception] && result[:exception].backtrace) || []).map { |s| s.to_s }.join("\r\n")),
|
56
56
|
:message => escape(result[:exception].to_s),
|
57
57
|
}
|
58
58
|
end
|
@@ -10,7 +10,10 @@ module AllureRSpec
|
|
10
10
|
AllureRSpec::Builder.stop_test(
|
11
11
|
example.metadata[:example_group][:description_args].first,
|
12
12
|
example.metadata[:description],
|
13
|
-
example.metadata[:execution_result].merge(
|
13
|
+
example.metadata[:execution_result].merge(
|
14
|
+
:caller => example.metadata[:caller],
|
15
|
+
:exception => example.metadata[:execution_result][:exception]
|
16
|
+
)
|
14
17
|
)
|
15
18
|
super
|
16
19
|
end
|
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.3.
|
4
|
+
version: 0.3.4
|
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-07-
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- lib/allure-rspec/formatter.rb
|
115
115
|
- lib/allure-rspec/version.rb
|
116
116
|
- logo.png
|
117
|
+
- spec/another_spec.rb
|
117
118
|
- spec/extend_steps_spec.rb
|
118
119
|
- spec/spec_helper.rb
|
119
120
|
homepage: http://allure.qatools.ru
|
@@ -139,5 +140,5 @@ rubyforge_project:
|
|
139
140
|
rubygems_version: 2.0.3
|
140
141
|
signing_key:
|
141
142
|
specification_version: 4
|
142
|
-
summary: allure-rspec-0.3.
|
143
|
+
summary: allure-rspec-0.3.4
|
143
144
|
test_files: []
|