test-queue-split 0.3.1 → 0.3.2
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/test_queue/runner/cucumber.rb +13 -6
- data/lib/test_queue/version.rb +1 -1
- data/release_notes.md +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad6718915a34e8f2c707df24adb4530996774fe0
|
4
|
+
data.tar.gz: a20c4378867fe106a9bfc359184350bc21b560c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0255f2e9beaaacc0d0bdbb7a14d92496aad28403ce151be8709ade75a285bfbcd59a97c9da4170d6db6f45e9d03e9a4cf195ec847bee6689149ba05b67607810
|
7
|
+
data.tar.gz: 6908746944197da82a679a9d6e2b0af74ace68912fba88e077972d3a3b09dbe58705cfca6e3e085300c12577faf1425fa06aaa90d355bbcdc448144c956ec97b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -20,15 +20,22 @@ module TestQueue
|
|
20
20
|
class Runner
|
21
21
|
class Cucumber < Runner
|
22
22
|
def initialize
|
23
|
-
@cli
|
24
|
-
@runtime
|
23
|
+
@cli = ::Cucumber::Cli::Main.new(ARGV.dup)
|
24
|
+
@runtime = ::Cucumber::Runtime.new(@cli.configuration)
|
25
25
|
@features_loader = @runtime.send(:features)
|
26
|
-
|
26
|
+
|
27
|
+
features = @features_loader.is_a?(Array) ? @features_loader : @features_loader.features
|
28
|
+
features = features.sort_by { |s| -(stats[s.to_s] || 0) }
|
27
29
|
super(features)
|
28
30
|
end
|
29
31
|
|
30
32
|
def run_worker(iterator)
|
31
|
-
@features_loader.
|
33
|
+
if @features_loader.is_a?(Array)
|
34
|
+
@features_loader = iterator
|
35
|
+
else
|
36
|
+
@features_loader.features = iterator
|
37
|
+
end
|
38
|
+
|
32
39
|
@cli.execute!(@runtime)
|
33
40
|
end
|
34
41
|
|
@@ -37,8 +44,8 @@ module TestQueue
|
|
37
44
|
stats[s.to_s] = val
|
38
45
|
end
|
39
46
|
|
40
|
-
output
|
41
|
-
worker.summary
|
47
|
+
output = worker.output.gsub(/\e\[\d+./, '')
|
48
|
+
worker.summary = output.split("\n").grep(/^\d+ (scenarios?|steps?)/).first
|
42
49
|
worker.failure_output = output.scan(/^Failing Scenarios:\n(.*)\n\d+ scenarios?/m).join("\n")
|
43
50
|
end
|
44
51
|
end
|
data/lib/test_queue/version.rb
CHANGED
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v0.3.2 2015-08-31
|
2
|
+
|
3
|
+
- [82c09e3](https://github.com/sbonebrake/test-queue/commit/82c09e361dca5b1d23daa2f440c5b51503ddba75) Release 0.3.2
|
4
|
+
- [90bf4af](https://github.com/sbonebrake/test-queue/commit/90bf4af310da62a6ac5a46c1c8fb6f70207eca2d) Fix cucumber support
|
5
|
+
|
6
|
+
|
1
7
|
#### v0.3.1 2015-08-31
|
2
8
|
|
3
9
|
- [bc48cdc](https://github.com/sbonebrake/test-queue/commit/bc48cdc0aa36adaee2c499be2563fef9fc92cfe9) Release 0.3.1
|