parallel_tests 2.0.0 → 2.1.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: fa55f19001261a436907cce40642bf0bb7708add
4
- data.tar.gz: 10ca7633d0ce856ca3580af38448fe3dbe162896
3
+ metadata.gz: e176cd85e6826766bdf2384b8234228932702e4f
4
+ data.tar.gz: a4b36614ab9fb29e56e52e48f0ada93a6fbe9d52
5
5
  SHA512:
6
- metadata.gz: 886b24dcf05d2d7c871b5de35d56d0e8e4e02911331b3be55eb3692cbcffea575be95b3e74fcd016b6c4fee3773b1933ba4e1e83c1fe4c360a15084bafb6f677
7
- data.tar.gz: dd15061ab2bd2d52cde61e0c39e785bfb13d8322e06719c87cb66d0e6973ff83c85d525225fbfe261bde0263d3737b63b7a4107c4fe05d9b6dc92847b6b56698
6
+ metadata.gz: e8b1d312356733a01a44f5376ad3ee5f6cd8a77946b88d1e14af1ece15f97db055ae00f6654f87bb5e1c91ca8eb9b5ee0de29371c0319c27813775c7bc2c7102
7
+ data.tar.gz: c41eb3de31f8d17a7a2f35ecb80289106cac9d264eabf915baf265d3e62432f7a33260c7f7943d6a37b5b0dc5450a6fc39ed1039b3de5f6f7666e979a45c8597
data/Readme.md CHANGED
@@ -205,6 +205,8 @@ Options are:
205
205
  --ignore-tags [PATTERN] When counting steps ignore scenarios with tags that match this pattern
206
206
  --nice execute test commands with low priority.
207
207
  --runtime-log [PATH] Location of previously recorded test runtimes
208
+ --allowed-missing Allowed percentage of missing runtimes (default = 50)
209
+ --unknown-runtime [FLOAT] Use given number as unknown runtime (otherwise use average time)
208
210
  --verbose Print more output
209
211
  -v, --version Show Version
210
212
  -h, --help Show this.
@@ -326,6 +328,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
326
328
  - [Cezary Baginski](https://github.com/e2)
327
329
  - [Marius Ioana](https://github.com/mariusioana)
328
330
  - [Lukas Oberhuber](https://github.com/lukaso)
331
+ - [Ryan Zhang](https://github.com/ryanus)
329
332
 
330
333
 
331
334
  [Michael Grosser](http://grosser.it)<br/>
@@ -186,6 +186,7 @@ module ParallelTests
186
186
  opts.on('--ignore-tags [PATTERN]', 'When counting steps ignore scenarios with tags that match this pattern') { |arg| options[:ignore_tag_pattern] = arg }
187
187
  opts.on("--nice", "execute test commands with low priority.") { options[:nice] = true }
188
188
  opts.on("--runtime-log [PATH]", "Location of previously recorded test runtimes") { |path| options[:runtime_log] = path }
189
+ opts.on("--allowed-missing", "Allowed percentage of missing runtimes (default = 50)") { |percent| options[:allowed_missing_percent] = percent }
189
190
  opts.on("--unknown-runtime [FLOAT]", "Use given number as unknown runtime (otherwise use average time)") { |time| options[:unknown_runtime] = time.to_f }
190
191
  opts.on("--verbose", "Print more output") { options[:verbose] = true }
191
192
  opts.on("-v", "--version", "Show Version") { puts ParallelTests::VERSION; exit }
@@ -52,7 +52,7 @@ module ParallelTests
52
52
  when :filesize
53
53
  sort_by_filesize(tests)
54
54
  when :runtime
55
- sort_by_runtime(tests, runtimes(tests, options), options.merge(allowed_missing: 0.5))
55
+ sort_by_runtime(tests, runtimes(tests, options), options.merge(allowed_missing: (options[:allowed_missing_percent] || 50) / 100.0))
56
56
  when nil
57
57
  # use recorded test runtime if we got enough data
58
58
  runtimes = runtimes(tests, options) rescue []
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '2.0.0'
2
+ VERSION = Version = '2.1.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: 2.0.0
4
+ version: 2.1.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-11-19 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel