maxitest 4.0.0 → 4.2.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 +1 -1
- data/lib/maxitest/vendor/testrbl.rb +5 -4
- data/lib/maxitest/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: c6c6f38d399b9123b56cdd2973c20a677c1b0c5b9b8ca0dd22e0c3d8b2eee213
|
4
|
+
data.tar.gz: 8d6c5571e17f8f8c071893b518cccb183102944e248f58a5deac2248cf551381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec3bc0009be05b310115846d83c099ec5d396a7e54bf855e5151de000000da0bdb7748d3efc491a694bbd8be6b717b1675dc61ec185ce2c8390bf9f84f758976
|
7
|
+
data.tar.gz: f99985662a234bf741339a43084fa1b3460eef651331351a2e236185ff9daac2d84371f5913cd89e5ff82d30e971557f8bf87535cf8dd9fccd4a6a075906811b
|
data/Readme.md
CHANGED
@@ -44,7 +44,7 @@ Development
|
|
44
44
|
- tested via rspec to avoid messing up our own tests by accident
|
45
45
|
- fixes should go back to the original libraries
|
46
46
|
- restrictive minitest dependency so nothing breaks by accident
|
47
|
-
- ruby >=2.
|
47
|
+
- ruby >=2.6
|
48
48
|
- `rake bundle` to update all vendored gems
|
49
49
|
|
50
50
|
Author
|
@@ -5,9 +5,9 @@
|
|
5
5
|
module Maxitest
|
6
6
|
module Testrbl
|
7
7
|
PATTERNS = [
|
8
|
-
/^(\s+)(should|test|it)\s
|
9
|
-
/^(\s+)(context|describe)\s
|
10
|
-
/^(\s+)def\s+(test_)([a-z_\d]+)\s*(?:#.*)?$/
|
8
|
+
/^(\s+)(should|test|it)(\s+|\s*\(\s*)['"](.*)['"](\s*\))?\s+do\s*(?:#.*)?$/,
|
9
|
+
/^(\s+)(context|describe)(\s+|\s*\(\s*)['"]?(.*?)['"]?(\s*\))?\s+do\s*(?:#.*)?$/,
|
10
|
+
/^(\s+)def(\s+)(test_)([a-z_\d]+)\s*(?:#.*)?$/
|
11
11
|
]
|
12
12
|
|
13
13
|
OPTION_WITH_ARGUMENT = ["-I", "-r", "-n", "--name", "-e", "--exclude", "-s", "--seed"]
|
@@ -17,6 +17,7 @@ module Maxitest
|
|
17
17
|
def run_from_cli(argv)
|
18
18
|
files, options = partition_argv(argv)
|
19
19
|
files.concat(changed_files) if options.delete("--changed")
|
20
|
+
files = ["test"] if files.empty?
|
20
21
|
files = files.map { |f| localize(f) }
|
21
22
|
load_options, options = partition_options(options)
|
22
23
|
|
@@ -157,7 +158,7 @@ module Maxitest
|
|
157
158
|
def test_pattern_from_line(line)
|
158
159
|
PATTERNS.each do |r|
|
159
160
|
next unless line =~ r
|
160
|
-
whitespace, method, test_name = $1, $2, $
|
161
|
+
whitespace, method, test_name = $1, $2, $4
|
161
162
|
return [whitespace, test_pattern_from_match(method, test_name)]
|
162
163
|
end
|
163
164
|
nil
|
data/lib/maxitest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maxitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.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:
|
11
|
+
date: 2022-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 5.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.
|
22
|
+
version: 5.17.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 5.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.
|
32
|
+
version: 5.17.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 2.
|
104
|
+
version: 2.6.0
|
105
105
|
- - "<"
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '4'
|