gridium 1.1.38 → 1.1.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testrail.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87afa06bbdeefbfd41eee62c6cc5a5af18698a6
|
4
|
+
data.tar.gz: 4ff0a6d5254bb94cab3325975384e6f0ec20faf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58e927badaab9547d7564c86db383ef913290db08cb41c4595fbc5b683a0e15fed521d34440032e547304699a1d587a38c9b28f64c5606a73dafc229a392799
|
7
|
+
data.tar.gz: 45839f28c4a1ff4972fe5ca5c20aed05481fd07466292302f1dddfae09dc9793c4b329d39841015982a63ad525ca9a8c026d80a3e0903c4dfb4cdb65695dd92f
|
data/lib/testrail.rb
CHANGED
@@ -65,8 +65,13 @@ module Gridium
|
|
65
65
|
message = rspec_test.exception.message
|
66
66
|
screenshot_url = rspec_test.metadata[:screenshot_url]
|
67
67
|
if screenshot_url
|
68
|
-
message << "- Screenshot: #{screenshot_url}"
|
68
|
+
message << "\n - Screenshot: #{screenshot_url}"
|
69
69
|
end
|
70
|
+
|
71
|
+
# add backtrace to test case
|
72
|
+
bt_search_re = rspec_test.metadata[:backtrace_regex] || 'sitetestui'
|
73
|
+
bt = rspec_test.exception.backtrace.grep(/#{bt_search_re}/)
|
74
|
+
message << "\n\n # " + bt.join("\n # ") unless bt.empty?
|
70
75
|
else
|
71
76
|
status = CONFIG[:pass]
|
72
77
|
message = 'Test Passed.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Urban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|