parallel_tests 5.3.1 → 5.5.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 +4 -4
- data/Readme.md +8 -6
- data/lib/parallel_tests/tasks.rb +1 -1
- data/lib/parallel_tests/test/runtime_logger.rb +3 -1
- data/lib/parallel_tests/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d850a10c42ab69c909b57532fd5ae2cb7d7c3af53024f00d3ef1eaebefb2c4c7
|
|
4
|
+
data.tar.gz: a63452a8f64c81e4529dc3afa7947ed6b4a03625952b09fff4723c474f18e9e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 910b76b85bea7b62cc213d3cd43d755879419823aad07db8a6786cda89fcab58fa5fbac11e483a84dc5fddaba5e5c087f949ee0747b22f06ad00590089c3b0d2
|
|
7
|
+
data.tar.gz: 7cbb580dd6438424b86473e4a3a09ad721b7da6e274f37f4aa6473761f4ab64206c08fbe3016447c49b2b7e42b0a92a1916c8aeaa453f7b3251138c7a256ff9c
|
data/Readme.md
CHANGED
|
@@ -129,7 +129,7 @@ Test groups will often run for different times, making the full test run as slow
|
|
|
129
129
|
|
|
130
130
|
**Step 1**: Use these loggers (see below) to record test runtime
|
|
131
131
|
|
|
132
|
-
**Step 2**: The next test run will use the recorded test runtimes (use `--runtime-log <file>` if you
|
|
132
|
+
**Step 2**: The next test run will use the recorded test runtimes (use `--runtime-log <file>` if you wrote to a location different from default)
|
|
133
133
|
|
|
134
134
|
**Step 3**: Automate upload/download of test runtime from your CI system [example](https://github.com/grosser/parallel_rails_example/blob/master/.github/workflows/test.yml) (chunks need to be combined, an alternative is [amend](https://github.com/grosser/amend))
|
|
135
135
|
|
|
@@ -140,17 +140,17 @@ Rspec: Add to your `.rspec_parallel` (or `.rspec`), but can also be used via `--
|
|
|
140
140
|
--format progress
|
|
141
141
|
--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log
|
|
142
142
|
|
|
143
|
-
To use a custom logfile location (default: `tmp/parallel_runtime_rspec.log`), use the CLI: `parallel_test spec -t rspec --runtime-log my.log`
|
|
144
|
-
|
|
145
143
|
### Minitest
|
|
146
144
|
|
|
147
145
|
Add to your `test_helper.rb`:
|
|
148
146
|
```ruby
|
|
149
|
-
|
|
147
|
+
if ENV['RECORD_RUNTIME']
|
|
148
|
+
require 'parallel_tests/test/runtime_logger'
|
|
149
|
+
# ParallelTests::Test::RuntimeLogger.logfile = "tmp/parallel_runtime_test.log" # where to write it
|
|
150
|
+
end
|
|
150
151
|
```
|
|
151
152
|
|
|
152
|
-
results will be logged
|
|
153
|
-
so it is not always required or overwritten.
|
|
153
|
+
results will be logged when `RECORD_RUNTIME` is set, so it is not always required or overwritten.
|
|
154
154
|
|
|
155
155
|
Loggers
|
|
156
156
|
=======
|
|
@@ -360,6 +360,7 @@ TIPS
|
|
|
360
360
|
- Debug errors that only happen with multiple files using `--verbose` and [cleanser](https://github.com/grosser/cleanser)
|
|
361
361
|
- `export PARALLEL_TEST_PROCESSORS=13` to override default processor count
|
|
362
362
|
- `export PARALLEL_TEST_MULTIPLY_PROCESSES=.5` to override default processor multiplier
|
|
363
|
+
- `export PARALLEL_RAILS_ENV=environment_name` to override the default `test` environment
|
|
363
364
|
- Shell alias: `alias prspec='parallel_rspec -m 2 --'`
|
|
364
365
|
- [Spring] Add the [spring-commands-parallel-tests](https://github.com/DocSpring/spring-commands-parallel-tests) gem to your `Gemfile` to get `parallel_tests` working with Spring.
|
|
365
366
|
- `--first-is-1` will make the first environment be `1`, so you can test while running your full suite.<br/>
|
|
@@ -474,6 +475,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
|
|
|
474
475
|
- [hatsu](https://github.com/hatsu38)
|
|
475
476
|
- [Mark Huk](https://github.com/vimutter)
|
|
476
477
|
- [Johannes Vetter](https://github.com/johvet)
|
|
478
|
+
- [Michel Filipe](https://github.com/mfilipe)
|
|
477
479
|
|
|
478
480
|
[Michael Grosser](http://grosser.it)<br/>
|
|
479
481
|
michael@grosser.it<br/>
|
data/lib/parallel_tests/tasks.rb
CHANGED
|
@@ -8,6 +8,8 @@ module ParallelTests
|
|
|
8
8
|
@@prepared = false
|
|
9
9
|
|
|
10
10
|
class << self
|
|
11
|
+
attr_writer :logfile
|
|
12
|
+
|
|
11
13
|
def log_test_run(test)
|
|
12
14
|
prepare
|
|
13
15
|
|
|
@@ -66,7 +68,7 @@ module ParallelTests
|
|
|
66
68
|
end
|
|
67
69
|
|
|
68
70
|
def logfile
|
|
69
|
-
ParallelTests::Test::Runner.runtime_log
|
|
71
|
+
@logfile || ParallelTests::Test::Runner.runtime_log
|
|
70
72
|
end
|
|
71
73
|
end
|
|
72
74
|
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: 5.
|
|
4
|
+
version: 5.5.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: 2025-
|
|
11
|
+
date: 2025-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parallel
|
|
@@ -69,9 +69,9 @@ licenses:
|
|
|
69
69
|
- MIT
|
|
70
70
|
metadata:
|
|
71
71
|
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
|
|
72
|
-
changelog_uri: https://github.com/grosser/parallel_tests/blob/v5.
|
|
73
|
-
documentation_uri: https://github.com/grosser/parallel_tests/blob/v5.
|
|
74
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v5.
|
|
72
|
+
changelog_uri: https://github.com/grosser/parallel_tests/blob/v5.5.0/CHANGELOG.md
|
|
73
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v5.5.0/Readme.md
|
|
74
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v5.5.0
|
|
75
75
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
|
76
76
|
rubygems_mfa_required: 'true'
|
|
77
77
|
post_install_message:
|