gridium 1.1.38 → 1.1.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/testrail.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60249cf1cf1e912db1b629afce226fdb7a3b353c
4
- data.tar.gz: b367eae017e3333e69741462718a23478cc22c63
3
+ metadata.gz: c87afa06bbdeefbfd41eee62c6cc5a5af18698a6
4
+ data.tar.gz: 4ff0a6d5254bb94cab3325975384e6f0ec20faf6
5
5
  SHA512:
6
- metadata.gz: 548a4c78b1daa3ccedcd2dcfbd1ca365be1f4ba2290cd81e0a5b9a85ef1aaae341c5161fe8bd73315764cc60b9b95089451347e6297fff0e04c9398bd2b962d2
7
- data.tar.gz: 6efad34a1b7e7d48ae84f842c363d4af4e72e4116919fb347b31e1b5caad5c2460e430f22ed6378837bdd9fde421360ebaddbd9e655083da4e304d9af03dd644
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.38
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-04 00:00:00.000000000 Z
11
+ date: 2017-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler