parallel_tests 1.6.2 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e22b7151afe39f71cc882c6feecd4a2649cbec5
4
- data.tar.gz: b489f53928ed01b921cacaa4657335668e82f806
3
+ metadata.gz: 93757fc82fa22bbf9917e4f4bdee2e4f0e224c3a
4
+ data.tar.gz: 7e14e97cad3850b519d1336a4db64db672e383f3
5
5
  SHA512:
6
- metadata.gz: 6cd0ef9b424966a910ff6f1937a7e098d8aa2a1779f0ab49681029cea179a7cfc753145c2c13534a564f001a3f2577f84600036e60a61bc6bc6f57ccd79f11c1
7
- data.tar.gz: 430a8992f2b03cde626b5d47c16d593c58ab497af0b1e92c1f041e42ec2f32596de7dbb9ba87f7e8434481d8c8103fb8ade10311b8d523372c072c2e291f177f
6
+ metadata.gz: 9bbbefd8b9c9b94647df6f0f7b0ee0414fb1c1c0adbcfcf3627dcd95a2d2c25a36816d40e462abb6d52e90bce2a80c085ee922b293a1deba50f6b541e80aa365
7
+ data.tar.gz: bea182977a97b9c1e778dd437a7ab22592564ea13b3e56511bb7545ddf65873dbcbf087691106cdfa36e94ff1c313026cb9579ab95b52829b3bbe061f5b0858e
data/Readme.md CHANGED
@@ -195,6 +195,9 @@ Options are:
195
195
  -e, --exec [COMMAND] execute this code parallel and with ENV['TEST_ENV_NUMBER']
196
196
  -o, --test-options '[OPTIONS]' execute test commands with those options
197
197
  -t, --type [TYPE] test(default) / rspec / cucumber / spinach
198
+ --suffix [PATTERN] override built in test file pattern (should match suffix):
199
+ '_spec.rb$' - matches rspec files
200
+ '_(test|spec).rb$' - matches test or spec files
198
201
  --serialize-stdout Serialize stdout output, nothing will be written until everything is done
199
202
  --combine-stderr Combine stderr into stdout, useful in conjunction with --serialize-stdout
200
203
  --non-parallel execute same commands but do not in parallel, needs --exec
@@ -156,6 +156,12 @@ module ParallelTests
156
156
  abort
157
157
  end
158
158
  end
159
+ opts.on("--suffix [PATTERN]", <<-TEXT.gsub(/^ /, '')
160
+ override built in test file pattern (should match suffix):
161
+ '_spec\.rb$' - matches rspec files
162
+ '_(test|spec).rb$' - matches test or spec files
163
+ TEXT
164
+ ) { |pattern| options[:suffix] = /#{pattern}/ }
159
165
  opts.on("--serialize-stdout", "Serialize stdout output, nothing will be written until everything is done") { options[:serialize_stdout] = true }
160
166
  opts.on("--combine-stderr", "Combine stderr into stdout, useful in conjunction with --serialize-stdout") { options[:combine_stderr] = true }
161
167
  opts.on("--non-parallel", "execute same commands but do not in parallel, needs --exec") { options[:non_parallel] = true }
@@ -196,7 +196,7 @@ module ParallelTests
196
196
  (tests || []).map do |file_or_folder|
197
197
  if File.directory?(file_or_folder)
198
198
  files = files_in_folder(file_or_folder, options)
199
- files.grep(test_suffix).grep(options[:pattern]||//)
199
+ files.grep(options[:suffix]||test_suffix).grep(options[:pattern]||//)
200
200
  else
201
201
  file_or_folder
202
202
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '1.6.2'
2
+ VERSION = Version = '1.7.0'
3
3
  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: 1.6.2
4
+ version: 1.7.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: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel