parallel_tests 0.16.15 → 0.16.16
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66264543303936c882f66d933e072d6b08c6f665
|
4
|
+
data.tar.gz: fe7bf47d3efb8744c311e55d32b6e16f5d43f8f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3bd6ae751e08db4d6eed377842f874ebb63bd24c4d8147fa4c22cffd5c958f1ff84e7c8cb4fdab84309ba8e7bfd7845059416f2416795fe087f7b55d591d905
|
7
|
+
data.tar.gz: 142688205f1570d744bbbe076f7701dd849c443db439a155fdfb95581bfd9a5fb10b8884383d1c5367a2de228e5d65ae5a8a995377c04f64e00f44625da03719
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ module ParallelTests
|
|
11
11
|
def all(files, options={})
|
12
12
|
tags = []
|
13
13
|
tags.concat options[:ignore_tag_pattern].to_s.split(/\s*,\s*/).map {|tag| "~#{tag}" }
|
14
|
-
tags.concat options[:test_options].to_s.scan(/(?:-t|--tags) (
|
14
|
+
tags.concat options[:test_options].to_s.scan(/(?:-t|--tags) (~?@[\w,~@]+)/).flatten
|
15
15
|
split_into_scenarios files, tags.uniq
|
16
16
|
end
|
17
17
|
|
data/lib/parallel_tests.rb
CHANGED
@@ -7,7 +7,7 @@ module ParallelTests
|
|
7
7
|
WINDOWS = (RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
|
8
8
|
GREP_PROCESSES_COMMAND = \
|
9
9
|
if WINDOWS
|
10
|
-
"wmic process get commandline | findstr TEST_ENV_NUMBER 2>&1"
|
10
|
+
"wmic process get commandline | findstr TEST_ENV_NUMBER | find /c \"TEST_ENV_NUMBER=\" 2>&1"
|
11
11
|
else
|
12
12
|
"ps -ef | grep [T]EST_ENV_NUMBER= 2>&1"
|
13
13
|
end
|
@@ -53,10 +53,15 @@ module ParallelTests
|
|
53
53
|
scenarios.should eq %W(#{feature_file.path}:7)
|
54
54
|
end
|
55
55
|
|
56
|
-
it 'return scenarios with
|
56
|
+
it 'return scenarios with tag' do
|
57
57
|
scenarios = Scenarios.all([feature_file.path], :test_options => '-t @wip')
|
58
58
|
scenarios.should eq %W(#{feature_file.path}:4)
|
59
59
|
end
|
60
|
+
|
61
|
+
it 'return scenarios with negative tag' do
|
62
|
+
scenarios = Scenarios.all([feature_file.path], :test_options => '-t @ignore,~@wip') # @ignore or not @wip
|
63
|
+
scenarios.should eq %W(#{feature_file.path}:7 #{feature_file.path}:11)
|
64
|
+
end
|
60
65
|
end
|
61
66
|
end
|
62
67
|
end
|