rspec_junit 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_junit/rspec_junit.rb +5 -4
- data/lib/rspec_junit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06fdf3d6a72c3886b7c8328f8843c85c4a930c73
|
4
|
+
data.tar.gz: 8f94d45af14532cd99027c96a209ce10c57fcd5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348c340a18efd515a79d1d80f4f296424d16fd18fcacdaa145de3259d1c94563c20341554ccb33707d224a62ddb0cf5dc1488ddc6fb8c15dd0002e6da675816b
|
7
|
+
data.tar.gz: 3a5b090121dd0218311fe20b6be6f74e204c5fb8e6d053abeb91bdfae46df3fe6cf2852f1c972d5b26b17c9fe229a769b19edd82ba35113a7082572979342e5b
|
@@ -52,14 +52,15 @@ class RSpecJUnit < RSpec::Core::Formatters::BaseFormatter
|
|
52
52
|
return '' if exception.nil?
|
53
53
|
backtrace = ''
|
54
54
|
if exception.backtrace # may be nil
|
55
|
-
backtrace
|
55
|
+
# Use the configured backtrace formatter instead of creating a new one.
|
56
|
+
backtrace = RSpec.configuration.backtrace_formatter.format_backtrace exception.backtrace
|
56
57
|
backtrace = "\n#{backtrace.join("\n")}"
|
57
58
|
end
|
58
59
|
sauce_test_link = example.metadata[:sauce_test_link]
|
59
60
|
|
60
|
-
result = "\n#{exception.class.name}\n#{exception.message}
|
61
|
-
result += "\n
|
62
|
-
result
|
61
|
+
result = "\n#{exception.class.name}\n#{exception.message}"
|
62
|
+
result += "\n#{sauce_test_link}\n" if sauce_test_link
|
63
|
+
"#{result}#{backtrace}"
|
63
64
|
end
|
64
65
|
|
65
66
|
# utility methods
|
data/lib/rspec_junit/version.rb
CHANGED