parallel_tests 0.16.15 → 0.16.16

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: fc599a0f7bdf0d3c3091815f70add3ed70e3ad15
4
- data.tar.gz: 37699a1e2e84a2a273dcb84dc1250a16d2056663
3
+ metadata.gz: 66264543303936c882f66d933e072d6b08c6f665
4
+ data.tar.gz: fe7bf47d3efb8744c311e55d32b6e16f5d43f8f0
5
5
  SHA512:
6
- metadata.gz: b17b2973212816422f149ce104c44b6f7ea4e044e16f9c1aa91d2ae58903e01b18ab31fafcb86950c61df5bf0e3b2f1973e71826145eb62fdfcf21d2240b6fdb
7
- data.tar.gz: 0fb8144371646813184895a0d57fcb675af472b006bb565b07d3090c061682fa1226b8b8d3fc4c86469d9d188236c57cdf1b18d631c058ecd9ce3abbbe93f352
6
+ metadata.gz: f3bd6ae751e08db4d6eed377842f874ebb63bd24c4d8147fa4c22cffd5c958f1ff84e7c8cb4fdab84309ba8e7bfd7845059416f2416795fe087f7b55d591d905
7
+ data.tar.gz: 142688205f1570d744bbbe076f7701dd849c443db439a155fdfb95581bfd9a5fb10b8884383d1c5367a2de228e5d65ae5a8a995377c04f64e00f44625da03719
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel_tests (0.16.15)
4
+ parallel_tests (0.16.16)
5
5
  parallel
6
6
 
7
7
  GEM
@@ -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) (@\w+)/).flatten
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
 
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '0.16.15'
2
+ VERSION = Version = '0.16.16'
3
3
  end
@@ -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 following tag' do
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.15
4
+ version: 0.16.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser