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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3784fb4e94413d435daab2e99def28d2293562b
4
- data.tar.gz: 65b533d73a5bfa04bdba27161c0d6baea8a202f8
3
+ metadata.gz: 0f821f8cf4e9ccbadef8d9a5d5c57f449e114cec
4
+ data.tar.gz: 654e9c3515d9b52af9bbeca95ba5ce7b97a408d6
5
5
  SHA512:
6
- metadata.gz: ab5162168063cfba147586acf5219c7065edfdf3bb110cda69c952165a3dad045464cac76c4e4c04839afa1dcaa9e23fbbbd0a5f650027788db4b6ed7aae150e
7
- data.tar.gz: 0cc7aedcc2978f92ef01a9c81d2d0807665cc8db6b1134d40ecaa4d078b7ca8722a9b0a26c7ae4625b4f07d57bf153234eec55a6e4ed390f232ed04906f65266
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 { |filename| %{"#{File.expand_path filename}"} }.join(",")
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[File.expand_path(test)] = time.to_f
150
+ times[test] = time.to_f
151
151
  end
152
- tests.sort.map{|test| [test, times[File.expand_path(test)]] }
152
+ tests.sort.map { |test| [test, times[test]] }
153
153
  else # use file sizes
154
154
  with_filesize_info(tests)
155
155
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '1.2.0'
2
+ VERSION = Version = '1.3.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.2.0
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-23 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel