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 +4 -4
- data/Readme.md +3 -0
- data/lib/parallel_tests/cli.rb +6 -0
- data/lib/parallel_tests/test/runner.rb +1 -1
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93757fc82fa22bbf9917e4f4bdee2e4f0e224c3a
|
|
4
|
+
data.tar.gz: 7e14e97cad3850b519d1336a4db64db672e383f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/parallel_tests/cli.rb
CHANGED
|
@@ -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
|
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.
|
|
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-
|
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parallel
|