turbo_tests 1.2.5 → 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
  SHA256:
3
- metadata.gz: b8a0dc37755b687ea503d265d864eb959d2bda3668e3f21c4b09af48e6fb852a
4
- data.tar.gz: 8399b27819ae06f123b0695754fe074cb8819d385cd2a4d932c12b9f30a88124
3
+ metadata.gz: 83d546a7efd52f8d3c1e20d6973b3a956c7cbf2f2b51b5e78c7d2ad67819b7db
4
+ data.tar.gz: 6f9d1a0841e3121a814c9f98a6ab0ac7146a78506d7a8adec622b9cf6e8e4a53
5
5
  SHA512:
6
- metadata.gz: cae6d818935454f40984af484fa8d87763732b578a4bb901679434c40a0d5dc152c671726523877247375c4572849c907e4190faab6e0681abb3b2d8db50e1bd
7
- data.tar.gz: 41a44281ddb35a3440eaa633bafecd7e9bb585acf132e69180a521e68148a9feb10121ac1a7bd38c38892d56c0ba326215bacd590380355ece8b02715667697b
6
+ metadata.gz: ad2917d505e40659a07e665523eff5af84f7b3ed9e2dacd8e7e1dd08ecc3eea88e507572f49c31cb973bbc63e1922825ef8a2c690db954689cf3afa071dbcb40
7
+ data.tar.gz: 7da1494e59ecaff728dd8a0231e96d83a89f15cc67a0f9a5a67dbc4539fc3c0268cf43824ade7caed0aa2565e8b559e0996d0706e0b210061fd02d8990d71fc1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- turbo_tests (1.2.5)
4
+ turbo_tests (1.3.0)
5
5
  bundler
6
6
  parallel_tests (~> 3.3)
7
7
  rspec (~> 3.10)
@@ -12,8 +12,8 @@ GEM
12
12
  coderay (1.1.3)
13
13
  diff-lcs (1.4.4)
14
14
  method_source (1.0.0)
15
- parallel (1.20.1)
16
- parallel_tests (3.7.0)
15
+ parallel (1.21.0)
16
+ parallel_tests (3.7.3)
17
17
  parallel
18
18
  pry (0.14.1)
19
19
  coderay (~> 1.1)
@@ -42,4 +42,4 @@ DEPENDENCIES
42
42
  turbo_tests!
43
43
 
44
44
  BUNDLED WITH
45
- 2.1.4
45
+ 2.2.27
data/README.md CHANGED
@@ -78,6 +78,7 @@ Options:
78
78
  -f, --format FORMATTER Choose a formatter. Available formatters: progress (p), documentation (d). Default: progress
79
79
  -t, --tag TAG Run examples with the specified tag.
80
80
  -o, --out FILE Write output to a file instead of $stdout
81
+ --runtime-log FILE Location of previously recorded test runtimes
81
82
  -v, --verbose More output
82
83
  --fail-fast=[N]
83
84
  ```
@@ -13,6 +13,7 @@ module TurboTests
13
13
  formatters = []
14
14
  tags = []
15
15
  count = nil
16
+ runtime_log = nil
16
17
  verbose = false
17
18
  fail_fast = nil
18
19
 
@@ -57,6 +58,10 @@ module TurboTests
57
58
  formatters.last[:outputs] << filename
58
59
  end
59
60
 
61
+ opts.on("--runtime-log FILE", "Location of previously recorded test runtimes") do |filename|
62
+ runtime_log = filename
63
+ end
64
+
60
65
  opts.on("-v", "--verbose", "More output") do
61
66
  verbose = true
62
67
  end
@@ -90,6 +95,7 @@ module TurboTests
90
95
  formatters: formatters,
91
96
  tags: tags,
92
97
  files: @argv.empty? ? ["spec"] : @argv,
98
+ runtime_log: runtime_log,
93
99
  verbose: verbose,
94
100
  fail_fast: fail_fast,
95
101
  count: count,
@@ -16,6 +16,7 @@ module TurboTests
16
16
 
17
17
  # SEE: https://bit.ly/2NP87Cz
18
18
  start_time = opts.fetch(:start_time) { Process.clock_gettime(Process::CLOCK_MONOTONIC) }
19
+ runtime_log = opts.fetch(:runtime_log, nil)
19
20
  verbose = opts.fetch(:verbose, false)
20
21
  fail_fast = opts.fetch(:fail_fast, nil)
21
22
  count = opts.fetch(:count, nil)
@@ -30,6 +31,7 @@ module TurboTests
30
31
  reporter: reporter,
31
32
  files: files,
32
33
  tags: tags,
34
+ runtime_log: runtime_log,
33
35
  verbose: verbose,
34
36
  fail_fast: fail_fast,
35
37
  count: count
@@ -40,6 +42,7 @@ module TurboTests
40
42
  @reporter = opts[:reporter]
41
43
  @files = opts[:files]
42
44
  @tags = opts[:tags]
45
+ @runtime_log = opts[:runtime_log] || "tmp/turbo_rspec_runtime.log"
43
46
  @verbose = opts[:verbose]
44
47
  @fail_fast = opts[:fail_fast]
45
48
  @count = opts[:count]
@@ -63,7 +66,7 @@ module TurboTests
63
66
  group_opts = {}
64
67
 
65
68
  if use_runtime_info
66
- group_opts[:runtime_log] = "tmp/turbo_rspec_runtime.log"
69
+ group_opts[:runtime_log] = @runtime_log
67
70
  else
68
71
  group_opts[:group_by] = :filesize
69
72
  end
@@ -138,7 +141,7 @@ module TurboTests
138
141
  if record_runtime
139
142
  [
140
143
  "--format", "ParallelTests::RSpec::RuntimeLogger",
141
- "--out", "tmp/turbo_rspec_runtime.log",
144
+ "--out", @runtime_log,
142
145
  ]
143
146
  else
144
147
  []
@@ -1,3 +1,3 @@
1
1
  module TurboTests
2
- VERSION = "1.2.5"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Zub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-17 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.1.4
121
+ rubygems_version: 3.2.27
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Runner for grosser/parallel_tests with incremental summarized output. Based