parallel_tests 2.20.0 → 2.21.0
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: b21c43a2b0797b545335a094d846b070d300c576
|
4
|
+
data.tar.gz: 7ce394c192647e4aed53937d42494a8bfd2ae4b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfe3cf7c94d8af96f075cb72b1cb100a85c4fc08e7f682c8e6f1b72f9dfd89e3090c8cd4507b14db72f81fad74ed8d3b9e903729a87c662d9b540898d64d61f7
|
7
|
+
data.tar.gz: 800d91f9284cbb94e0d16d7f93b9e21309818c1271c89eee80e934da80bc5eb32c12d5162710001085659555b2fb71e09519a07bb3ee87a3bea4f63953fd3380
|
@@ -3,7 +3,8 @@ require "parallel_tests/gherkin/runner"
|
|
3
3
|
module ParallelTests
|
4
4
|
module Cucumber
|
5
5
|
class Runner < ParallelTests::Gherkin::Runner
|
6
|
-
|
6
|
+
SCENARIOS_RESULTS_BOUNDARY_REGEX = /^(Failing|Flaky) Scenarios:$/
|
7
|
+
SCENARIO_REGEX = /^cucumber features\/.+:\d+/
|
7
8
|
|
8
9
|
class << self
|
9
10
|
def name
|
@@ -11,16 +12,18 @@ module ParallelTests
|
|
11
12
|
end
|
12
13
|
|
13
14
|
def line_is_result?(line)
|
14
|
-
super || line =~
|
15
|
+
super || line =~ SCENARIO_REGEX || line =~ SCENARIOS_RESULTS_BOUNDARY_REGEX
|
15
16
|
end
|
16
17
|
|
17
18
|
def summarize_results(results)
|
18
19
|
output = []
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
scenario_groups = results.slice_before(SCENARIOS_RESULTS_BOUNDARY_REGEX).group_by(&:first)
|
22
|
+
scenario_groups.each do |header, group|
|
23
|
+
scenarios = group.flatten.grep(SCENARIO_REGEX)
|
24
|
+
if scenarios.any?
|
25
|
+
output << ([header] + scenarios).join("\n")
|
26
|
+
end
|
24
27
|
end
|
25
28
|
|
26
29
|
output << super
|
@@ -44,7 +44,7 @@ module ParallelTests
|
|
44
44
|
# 1 scenario (1 failed)
|
45
45
|
# 1 step (1 failed)
|
46
46
|
def summarize_results(results)
|
47
|
-
sort_order = %w[scenario step failed undefined skipped pending passed]
|
47
|
+
sort_order = %w[scenario step failed flaky undefined skipped pending passed]
|
48
48
|
|
49
49
|
%w[scenario step].map do |group|
|
50
50
|
group_results = results.grep(/^\d+ #{group}/)
|