semaphore_test_boosters 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -1
- data/lib/test_boosters/boosters/minitest.rb +21 -1
- data/lib/test_boosters/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 502cd665598a91e82706246e1f4ce9ec49f74d42
|
4
|
+
data.tar.gz: d30decefa24819ecaf7b9e81496bb9f67fb5255a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d5625893720c3d00920a712ae5ea306cb179043c52c692fdb2d19dc4d69646fff8243e7a84f2e0acb7ef3648f617a6c72fddd7b3d2e69fb034805cfdb8b4944
|
7
|
+
data.tar.gz: 6e57270af8ed571fd2350ea023e7bffd13aa5fa75109014e987080c949865d18afa6889a740c3b833f852516af7d6097962a8ffa1585e1405e0a14ec160afa80
|
data/README.md
CHANGED
@@ -164,12 +164,29 @@ Example of running job 4 out of 32 jobs:
|
|
164
164
|
minitest_booster --job 4/32
|
165
165
|
```
|
166
166
|
|
167
|
-
|
167
|
+
If minitest booster is executed in a scope of a Rails project, the following is
|
168
|
+
executed:
|
169
|
+
|
170
|
+
``` bash
|
171
|
+
bundle exec rails test <file_list>
|
172
|
+
```
|
173
|
+
|
174
|
+
If minitest booster is running outside of a Rails project, the following is
|
175
|
+
executed:
|
168
176
|
|
169
177
|
``` bash
|
170
178
|
ruby -e 'ARGV.each { |f| require ".#{f}" }' <file_list>
|
171
179
|
```
|
172
180
|
|
181
|
+
If you want to run a custom command for minitest, use the
|
182
|
+
`MINITEST_BOOSTER_COMMAND` environment variable:
|
183
|
+
|
184
|
+
``` bash
|
185
|
+
export MINITEST_BOOSTER_COMMAND="bundle exec rake test"
|
186
|
+
|
187
|
+
minitest_booster --job 1/42
|
188
|
+
```
|
189
|
+
|
173
190
|
## ExUnit Booster
|
174
191
|
|
175
192
|
The `ex_unit_booster` loads all the files that match the `test/**/*_test.exs`
|
@@ -9,13 +9,33 @@ module TestBoosters
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def command
|
12
|
-
|
12
|
+
if command_set_with_env_var?
|
13
|
+
command_from_env_var
|
14
|
+
elsif rails_app?
|
15
|
+
"bundle exec rails test"
|
16
|
+
else
|
17
|
+
"ruby -e 'ARGV.each { |f| require \"./\#{f}\" }'"
|
18
|
+
end
|
13
19
|
end
|
14
20
|
|
15
21
|
def split_configuration_path
|
16
22
|
ENV["MINITEST_SPLIT_CONFIGURATION_PATH"] || "#{ENV["HOME"]}/minitest_split_configuration.json"
|
17
23
|
end
|
18
24
|
|
25
|
+
def command_set_with_env_var?
|
26
|
+
!command_from_env_var.empty?
|
27
|
+
end
|
28
|
+
|
29
|
+
def command_from_env_var
|
30
|
+
ENV["MINITEST_BOOSTER_COMMAND"].to_s
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def rails_app?
|
36
|
+
File.exist?("app") && File.exist?("config") && File.exist?("config/application.rb")
|
37
|
+
end
|
38
|
+
|
19
39
|
end
|
20
40
|
end
|
21
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semaphore_test_boosters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Developers at Rendered Text
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semaphore_cucumber_booster_config
|