test_launcher 2.22.0 → 2.23.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36291b804b53a382960871ce80a0d4c8f7e970d7
|
4
|
+
data.tar.gz: 04c1e9c5cc445604178eb93f73268f9d7b4e8798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242965dc63b3cca5bf48fc4c6a16da2ac09e9bf731e1e0e0d9805f8dae8675d4dc85b4555bcc9960873e41953cd4f2b6eede4e199a6bfc813e6ec5247bb43fc3
|
7
|
+
data.tar.gz: ba132f4e999694c2d602e3cd438a200a65369d8c8ae4c1839523870e6587a3db15b6edab8f5d07ff272fc71af5bf608d9a43055a256018d995f4983bf0fb13b0
|
@@ -108,17 +108,22 @@ Open an issue on https://github.com/petekinnecom/test_launcher if this is someth
|
|
108
108
|
|
109
109
|
def single_example(test_case, name: test_case.example, exact_match: false)
|
110
110
|
name_arg =
|
111
|
-
if exact_match
|
111
|
+
if exact_match && name.match(/[^\w]/)
|
112
|
+
Shellwords.escape(name)
|
113
|
+
elsif !exact_match
|
114
|
+
"'/#{name}/'"
|
115
|
+
else
|
112
116
|
name
|
117
|
+
end
|
118
|
+
|
119
|
+
file =
|
120
|
+
if test_case.spring_enabled?
|
121
|
+
test_case.relative_file
|
113
122
|
else
|
114
|
-
|
123
|
+
test_case.file
|
115
124
|
end
|
116
125
|
|
117
|
-
|
118
|
-
%{cd #{test_case.app_root} && #{test_case.example_runner} #{test_case.relative_file} --name='#{name_arg}'}
|
119
|
-
else
|
120
|
-
%{cd #{test_case.app_root} && #{test_case.example_runner} #{test_case.file} --name='#{name_arg}'}
|
121
|
-
end
|
126
|
+
%{cd #{test_case.app_root} && #{test_case.example_runner} #{file} --name=#{name_arg}}
|
122
127
|
end
|
123
128
|
|
124
129
|
def multiple_examples_same_file(test_cases)
|
@@ -43,6 +43,12 @@ module TestLauncher
|
|
43
43
|
example: args[-1][/--name=(.*)/, 1],
|
44
44
|
request: request
|
45
45
|
)
|
46
|
+
elsif args[-2]&.match("--name")
|
47
|
+
Frameworks::Minitest::TestCase.new(
|
48
|
+
file: args[-3],
|
49
|
+
example: args[-1][/\/?([^\/]*)\/?/, 1],
|
50
|
+
request: request
|
51
|
+
)
|
46
52
|
else
|
47
53
|
Frameworks::Minitest::TestCase.new(
|
48
54
|
file: args[-1],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Kinnecom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|