test_launcher 1.5.1 → 1.5.2
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: 26993369cd4119c8bfba37182fbd4f95d9b4607d
|
4
|
+
data.tar.gz: e2cc315b236f0ced3a052e3fc609b382b5ade67d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfddbd2cafefd68989321ab4f4b469cbccc35f5e6ab1f8a9105a282ea81720cd495ac4cb778a51e4f347fd7c43d1aee743aa0dc5d9a150b3bb250485ae304108
|
7
|
+
data.tar.gz: ba0ad8e49131fdbe06862a163f02f453c5dacfe8f4c9d45645eb1b3f0dd99fae5dae5566cf6dbf277fe616cc02123fad97f4713c05c67f37eb0498a53b1e6183
|
@@ -83,9 +83,15 @@ module TestLauncher
|
|
83
83
|
end
|
84
84
|
|
85
85
|
class Runner < Base::Runner
|
86
|
-
def single_example(test_case, name: test_case.example)
|
87
|
-
|
88
|
-
|
86
|
+
def single_example(test_case, name: test_case.example, exact_match: false)
|
87
|
+
regex_string =
|
88
|
+
if exact_match
|
89
|
+
name
|
90
|
+
else
|
91
|
+
"/#{Shellwords.escape(name)}/"
|
92
|
+
end
|
93
|
+
|
94
|
+
%{cd #{test_case.app_root} && #{test_case.runner} #{test_case.file} --name=#{regex_string}}
|
89
95
|
end
|
90
96
|
|
91
97
|
def multiple_examples_same_file(test_cases)
|
@@ -29,7 +29,7 @@ module TestLauncher
|
|
29
29
|
|
30
30
|
def command
|
31
31
|
if test_case.is_example?
|
32
|
-
Frameworks::Minitest::Runner.new.single_example(test_case)
|
32
|
+
Frameworks::Minitest::Runner.new.single_example(test_case, exact_match: true)
|
33
33
|
else
|
34
34
|
Frameworks::Minitest::Runner.new.single_file(test_case)
|
35
35
|
end
|
@@ -1,14 +1,12 @@
|
|
1
1
|
module TestLauncher
|
2
2
|
module Rubymine
|
3
3
|
class Request
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
end
|
4
|
+
def initialize(disable_spring:)
|
5
|
+
@disable_spring = disable_spring
|
6
|
+
end
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
end
|
8
|
+
def disable_spring?
|
9
|
+
@disable_spring
|
12
10
|
end
|
13
11
|
end
|
14
12
|
end
|