parallel_tests 3.1.0 → 3.2.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
  SHA256:
3
- metadata.gz: e0830430a73f9d4366617a98f2014e8b737b8f987a284ac959b0e83e8b0d7da1
4
- data.tar.gz: 358bd27a736baec67ef7775d16d8dd2b935f69f25ca71d7065e3343fea8feee6
3
+ metadata.gz: ea91f62a37f66936e848cdcfadf2d0c0744bfa3b7c2efc36f99d99a6bc39dedc
4
+ data.tar.gz: 72da68d7447b2f35c24ae11386c64a643c7f9e70be0690c9a061db94e811d374
5
5
  SHA512:
6
- metadata.gz: 18e2aae47f9ceb0d933ac37bde90fda6936febcbd5381b48c70be9f923a347fc79116996f36c532ba9e3efc14bbf249dfd3eb697d89d80b85578bf9ebd9cb2ae
7
- data.tar.gz: a6768ac48b991d984475921f64e7a7262e530303f150e9ee3e5d5322a8a34ee2a660af8ab626eda535c1be593fbf422049ac423f6bdbe0ee6292c9efc5e1603f
6
+ metadata.gz: 41c7ac695777ec7d528fd8fcfca0972d8aadca96e7a2f9e1d6f1929c6b0f299a42d58fa006397ba9d4d5d27e5993cc3b28348be65e85bd564914a09b9674e664
7
+ data.tar.gz: 3b2e3cf8dd34afaf2769a766fad72ebe079a1ccb0c30bc7f9a477d4938f9b9326bf4d60ea46cc5740ea39e4b1be393b0e1ea08bc8d464d00a8a8b0dbdea02823
data/Readme.md CHANGED
@@ -82,6 +82,8 @@ Running things once
82
82
  ===================
83
83
 
84
84
  ```Ruby
85
+ require "parallel_tests"
86
+
85
87
  # preparation:
86
88
  # affected by race-condition: first process may boot slower than the second
87
89
  # either sleep a bit or use a lock for example File.lock
@@ -97,7 +99,6 @@ at_exit do
97
99
  undo_something
98
100
  end
99
101
  end
100
-
101
102
  ```
102
103
 
103
104
  Even test group run-times
@@ -258,7 +259,7 @@ TIPS
258
259
  - Use [rspec-retry](https://github.com/NoRedInk/rspec-retry) (not rspec-rerun) to rerun failed tests.
259
260
  - [JUnit formatter configuration](https://github.com/grosser/parallel_tests/wiki#with-rspec_junit_formatter----by-jgarber)
260
261
  - Use [parallel_split_test](https://github.com/grosser/parallel_split_test) to run multiple scenarios in a single spec file, concurrently. (`parallel_tests` [works at the file-level and intends to stay that way](https://github.com/grosser/parallel_tests/issues/747#issuecomment-580216980))
261
-
262
+
262
263
  ### Cucumber
263
264
 
264
265
  - Add a `parallel: foo` profile to your `config/cucumber.yml` and it will be used to run parallel tests
@@ -5,7 +5,7 @@ module ParallelTests
5
5
  module Tasks
6
6
  class << self
7
7
  def rails_env
8
- ENV['RAILS_ENV'] || 'test'
8
+ 'test'
9
9
  end
10
10
 
11
11
  def rake_bin
@@ -173,7 +173,7 @@ module ParallelTests
173
173
  allowed_missing -= 1 unless time = runtimes[test]
174
174
  if allowed_missing < 0
175
175
  log = options[:runtime_log] || runtime_log
176
- raise "Runtime log file '#{log}' does not contain sufficient data to sort #{tests.size} test files, please update it."
176
+ raise "Runtime log file '#{log}' does not contain sufficient data to sort #{tests.size} test files, please update or remove it."
177
177
  end
178
178
  [test, time]
179
179
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '3.1.0'
2
+ VERSION = Version = '3.2.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: 3.1.0
4
+ version: 3.2.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: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2020-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -68,8 +68,8 @@ licenses:
68
68
  - MIT
69
69
  metadata:
70
70
  bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
71
- documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.1.0/Readme.md
72
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.1.0
71
+ documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.2.0/Readme.md
72
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.2.0
73
73
  wiki_uri: https://github.com/grosser/parallel_tests/wiki
74
74
  post_install_message:
75
75
  rdoc_options: []