moto 0.8.7 → 0.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27cd6f4b74db2d52a13daae5accff2c8ced922c8
4
- data.tar.gz: 7663285aa8ed492aca2f6b68d84945ba99f08c97
3
+ metadata.gz: 07c4d34bc9210a0b733b4f611128acaff34fd1a3
4
+ data.tar.gz: ab4e1346e86d2844fa5bafd3fe0a6518c939d8d6
5
5
  SHA512:
6
- metadata.gz: 5a3b7fc313e549842ed32512f3561ca1139c46afa354f114347ba898331fabd97bdaf73547b373eb23ffcc51d14fa8b8a406cf8f45cc351cb55a0e7a13502e68
7
- data.tar.gz: 8aa3f30d4153fddd5cf10beb930d385607fba3b27167afe502620f8981743c4bee7db2acdec48899e125dbaaccedd630273b9d29edda4791cbd81f9206543b60
6
+ metadata.gz: 5026888d22631ff1ae2d42c9347ceae346f0bbbb45870fd7d57595c062697697ea349c421c1b4f67fb079dfe24fed67f9ee45b34dbd78ce30a1bcc466dd10376
7
+ data.tar.gz: 834a3b7c45f9c05c84f4e167a26da28a04e377edd0cbbc1a19c3bf6be2f8ab4294a7013ffb97dfc00dba4d46b92eb4ab894d96afb560dbe52dd99f58b57f8a76
@@ -11,7 +11,8 @@ module Moto
11
11
 
12
12
  def start_run
13
13
 
14
- @url = Moto::Lib::Config.moto[:test_reporter][:listeners][:webui][:url]
14
+ @url = config[:url]
15
+ @send_log_on_pass = config[:send_log_on_pass]
15
16
 
16
17
  data = {
17
18
  name: custom_run_name,
@@ -73,8 +74,16 @@ module Moto
73
74
  end
74
75
 
75
76
  def end_test(test_status)
77
+
78
+ # don't send the log if the test has passed and appropriate flag is set to false
79
+ if test_status.results.last.code == Moto::Test::Result::PASSED && !@send_log_on_pass
80
+ full_log = nil
81
+ else
82
+ full_log = File.read(test_status.log_path)
83
+ end
84
+
76
85
  data = {
77
- log: File.read(test_status.log_path),
86
+ log: full_log,
78
87
  result: test_status.results.last.code,
79
88
  error: test_status.results.last.code == Moto::Test::Result::ERROR ? nil : test_status.results.last.message,
80
89
  failures: test_failures(test_status),
@@ -104,8 +113,13 @@ module Moto
104
113
  tries -= 1
105
114
  tries > 0 ? retry : raise
106
115
  end
116
+ end
107
117
 
118
+ # @return [Hash] Hash with config for WebUI
119
+ def config
120
+ Moto::Lib::Config.moto[:test_reporter][:listeners][:webui]
108
121
  end
122
+ private :config
109
123
 
110
124
  end
111
125
  end
@@ -1,3 +1,3 @@
1
1
  module Moto
2
- VERSION = '0.8.7'
2
+ VERSION = '0.8.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Wilczek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-09-12 00:00:00.000000000 Z
14
+ date: 2016-09-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport