mighty_test 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +6 -0
- data/lib/mighty_test/cli.rb +1 -0
- data/lib/mighty_test/minitest_runner.rb +1 -0
- data/lib/mighty_test/option_parser.rb +7 -4
- data/lib/mighty_test/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0a5ab6b78b6d5b8b4a0073ebc938a9fe2dffb4d83a8ae9c9d6dbd7ce665c538
|
4
|
+
data.tar.gz: ff523cac9bb63929f65a434bb01688eb2c1634ea8ae79394db99eff40236049f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c62977fcd28132def5507fd5ea1023109fa04e61aaffc2f765831caf2f633f9ef6efffc308a28244b50c4b401375e22c9e8a8a70b8acbc7731db4dd7650d99e
|
7
|
+
data.tar.gz: 2058631fd6e439361a4269d7374377df0019a386d0e5186a63064866bed9809bf33cfb2ae3d3f98a817b55ee5e190233960e0d0ad01b295592508aa7747c77db
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -217,6 +217,12 @@ This functionality is provided by the [minitest-rg](https://github.com/minitest/
|
|
217
217
|
|
218
218
|
## 💬 More Options
|
219
219
|
|
220
|
+
Use `-w` to enable Ruby warnings when running tests:
|
221
|
+
|
222
|
+
```sh
|
223
|
+
bin/mt -w
|
224
|
+
```
|
225
|
+
|
220
226
|
Minitest options are passed through to Minitest.
|
221
227
|
|
222
228
|
```sh
|
data/lib/mighty_test/cli.rb
CHANGED
@@ -4,10 +4,10 @@ module MightyTest
|
|
4
4
|
class OptionParser
|
5
5
|
def parse(argv)
|
6
6
|
argv, literal_args = split(argv, "--")
|
7
|
-
options = parse_options!(argv)
|
8
|
-
|
7
|
+
options, extra_args = parse_options!(argv)
|
8
|
+
extra_args += parse_minitest_flags!(argv) unless options[:help]
|
9
9
|
|
10
|
-
[argv + literal_args,
|
10
|
+
[argv + literal_args, extra_args, options]
|
11
11
|
end
|
12
12
|
|
13
13
|
def to_s
|
@@ -22,12 +22,15 @@ module MightyTest
|
|
22
22
|
|
23
23
|
def parse_options!(argv)
|
24
24
|
options = {}
|
25
|
+
extra_args = []
|
25
26
|
options[:all] = true if argv.delete("--all")
|
26
27
|
options[:watch] = true if argv.delete("--watch")
|
27
28
|
options[:version] = true if argv.delete("--version")
|
28
29
|
options[:help] = true if argv.delete("--help") || argv.delete("-h")
|
29
30
|
parse_shard(argv, options)
|
30
|
-
|
31
|
+
extra_args << "-w" if argv.delete("-w")
|
32
|
+
|
33
|
+
[options, extra_args]
|
31
34
|
end
|
32
35
|
|
33
36
|
def parse_minitest_flags!(argv)
|
data/lib/mighty_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mighty_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.5.
|
128
|
+
rubygems_version: 3.5.13
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: A modern Minitest runner for TDD, with watch mode and more
|