parallel_tests 2.25.0 → 2.26.0
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 +4 -4
- data/lib/parallel_tests/gherkin/runtime_logger.rb +12 -12
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4232f03dce77c4d10d8bb46b9001bf2d285e4dfda72079edd36e04d84c02ecef
|
4
|
+
data.tar.gz: 5bd9ad2fdfcb4c36509480f8abad3d7b0b632e530a8a2539253388346d4335eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b308ddbe59b8a455c7f1bfc8571884bef055e6daf030dcdc14e507fdbcb0f1b5437e061ecfd93fce43d4616726e9bacd07b7116fca51a954535c46e2f8b0adc
|
7
|
+
data.tar.gz: 5a563c161e6d04a815983fc4b1b486fe88939813af3cbf60ad7fafd1630c73669a2bd558a892041a7a3b52b559d4d66dc35a35c3696b34927affda9ab87404ab
|
@@ -5,22 +5,22 @@ module ParallelTests
|
|
5
5
|
class RuntimeLogger
|
6
6
|
include Io
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@io = prepare_io(
|
8
|
+
def initialize(config)
|
9
|
+
@io = prepare_io(config.out_stream)
|
10
10
|
@example_times = Hash.new(0)
|
11
|
-
end
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
config.on_event :test_case_started do |_|
|
13
|
+
@start_at = ParallelTests.now.to_f
|
14
|
+
end
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
config.on_event :test_case_finished do |event|
|
17
|
+
@example_times[event.test_case.feature.file] += ParallelTests.now.to_f - @start_at
|
18
|
+
end
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
config.on_event :test_run_finished do |_|
|
21
|
+
lock_output do
|
22
|
+
@io.puts @example_times.map { |file, time| "#{file}:#{time}" }
|
23
|
+
end
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|