rspec-multiprocess_runner 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9657102aa587ca6acd499b828177dbf398b6e6b
|
4
|
+
data.tar.gz: 3a8c98ed3e373fef1b4b7dfd18402144cc392b8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab7389b7741bcc49e0a0c035f0c9c995cf5894cee84d8c69bda5833e3913b3d1834f67d1f3e5ac51d7722f1ed2887858afcbfa9650e4fb549fed489e43b05886
|
7
|
+
data.tar.gz: 3419d3061983fab7408ea2eec18871ff5a83db427c0178e7fcae7424a9c97cf1d47cecf791e774e9a9a54befeffb5f106dca62baa5a1ba2078dd3f3ebc6f4e05
|
data/CHANGELOG.md
CHANGED
@@ -33,14 +33,14 @@ module RSpec::MultiprocessRunner
|
|
33
33
|
|
34
34
|
def example_passed(example)
|
35
35
|
super(example)
|
36
|
-
report_example_result(:passed,
|
36
|
+
report_example_result(:passed, example)
|
37
37
|
end
|
38
38
|
|
39
39
|
def example_pending(example)
|
40
40
|
super(example)
|
41
41
|
details = capture_output { dump_pending }
|
42
42
|
pending_examples.clear
|
43
|
-
report_example_result(:pending,
|
43
|
+
report_example_result(:pending, example, details)
|
44
44
|
end
|
45
45
|
|
46
46
|
def example_failed(example)
|
@@ -49,7 +49,7 @@ module RSpec::MultiprocessRunner
|
|
49
49
|
dump_failure_info(example)
|
50
50
|
dump_backtrace(example)
|
51
51
|
}
|
52
|
-
report_example_result(:failed,
|
52
|
+
report_example_result(:failed, example, details)
|
53
53
|
end
|
54
54
|
|
55
55
|
private
|
@@ -70,8 +70,10 @@ module RSpec::MultiprocessRunner
|
|
70
70
|
(@current_example_groups + [example.description.strip]).join('·')
|
71
71
|
end
|
72
72
|
|
73
|
-
def report_example_result(example_status,
|
74
|
-
|
73
|
+
def report_example_result(example_status, example, details=nil)
|
74
|
+
description = current_example_description(example)
|
75
|
+
line = example.metadata[:line_number]
|
76
|
+
worker.report_example_result(example_status, description, line, details)
|
75
77
|
end
|
76
78
|
end
|
77
79
|
end
|
@@ -178,7 +178,11 @@ module RSpec::MultiprocessRunner
|
|
178
178
|
if message_hash["details"]
|
179
179
|
suffix += "\n#{message_hash["details"]}"
|
180
180
|
end
|
181
|
-
|
181
|
+
location = @current_file
|
182
|
+
if message_hash["line_number"]
|
183
|
+
location = [location, message_hash["line_number"]].join(':')
|
184
|
+
end
|
185
|
+
$stdout.puts "#{environment_number} (#{pid}): #{message_hash["description"]} (#{location})#{suffix}"
|
182
186
|
@current_example_started_at = Time.now
|
183
187
|
else
|
184
188
|
$stderr.puts "Received unsupported status #{message_hash["status"].inspect} in worker #{pid}"
|
@@ -196,11 +200,12 @@ module RSpec::MultiprocessRunner
|
|
196
200
|
|
197
201
|
public
|
198
202
|
|
199
|
-
def report_example_result(example_status, description, details)
|
203
|
+
def report_example_result(example_status, description, line_number, details)
|
200
204
|
send_message_to_coordinator(
|
201
205
|
status: STATUS_EXAMPLE_COMPLETE,
|
202
206
|
example_status: example_status,
|
203
207
|
description: description,
|
208
|
+
line_number: line_number,
|
204
209
|
details: details
|
205
210
|
)
|
206
211
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-multiprocess_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rhett Sutphin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|