parallel_tests 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +1 -0
- data/lib/parallel_tests/test/runner.rb +4 -4
- 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: 0f821f8cf4e9ccbadef8d9a5d5c57f449e114cec
|
4
|
+
data.tar.gz: 654e9c3515d9b52af9bbeca95ba5ce7b97a408d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5190ff730509aea5855831877865cf5ee9b8223b67ad1b960519c0b4eed034b744180bd8c3123cd81649ebd4c9243e6e67ed1be6bec4da5e2d73ec544a27d800
|
7
|
+
data.tar.gz: b5c2281e6f285333656923d8af0ce1ed85aaf2cab84dd84a9a83b413bb8c99f861aa8cb94f25de2b9e134ba0c9b47baeb312bbf35bb17a2630fcf94768835527
|
data/Readme.md
CHANGED
@@ -226,6 +226,7 @@ TIPS
|
|
226
226
|
- [Memcached] use different namespaces e.g. `config.cache_store = ..., namespace: "test_#{ENV['TEST_ENV_NUMBER']}"`
|
227
227
|
- [zeus-parallel_tests](https://github.com/sevos/zeus-parallel_tests)
|
228
228
|
- [Distributed parallel test (e.g. Travis Support)](https://github.com/grosser/parallel_tests/wiki/Distributed-Parallel-Tests-and-Travis-Support)
|
229
|
+
- Debug errors that only happen with multiple files using `--verbose` and [cleanser](https://github.com/grosser/cleanser)
|
229
230
|
- Contribute your own gotaches to the [Wiki](https://github.com/grosser/parallel_tests/wiki) or even better open a PR :)
|
230
231
|
|
231
232
|
TODO
|
@@ -25,8 +25,8 @@ module ParallelTests
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def run_tests(test_files, process_number, num_processes, options)
|
28
|
-
require_list = test_files.map { |
|
29
|
-
cmd = "#{executable} -Itest -e '[#{require_list}].each {|f| require f }' -- #{options[:test_options]}"
|
28
|
+
require_list = test_files.map { |file| file.sub(" ", "\\ ") }.join(" ")
|
29
|
+
cmd = "#{executable} -Itest -e '%w[#{require_list}].each { |f| require %{./\#{f}} }' -- #{options[:test_options]}"
|
30
30
|
execute_command(cmd, process_number, num_processes, options)
|
31
31
|
end
|
32
32
|
|
@@ -147,9 +147,9 @@ module ParallelTests
|
|
147
147
|
lines.each do |line|
|
148
148
|
test, time = line.split(":")
|
149
149
|
next unless test and time
|
150
|
-
times[
|
150
|
+
times[test] = time.to_f
|
151
151
|
end
|
152
|
-
tests.sort.map{|test| [test, times[
|
152
|
+
tests.sort.map { |test| [test, times[test]] }
|
153
153
|
else # use file sizes
|
154
154
|
with_filesize_info(tests)
|
155
155
|
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.3.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-02-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|