test_launcher 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e18c5338873c55199563af9ddc95cf56e55efe76
4
- data.tar.gz: 6c0f7ff4e88fe6cfbcc6feecae0aed593783b6c0
3
+ metadata.gz: 26993369cd4119c8bfba37182fbd4f95d9b4607d
4
+ data.tar.gz: e2cc315b236f0ced3a052e3fc609b382b5ade67d
5
5
  SHA512:
6
- metadata.gz: acb65869157cd0f35d51e713df0e0ac917773320a412b305644f0e19539221ecc92cb4e25ec32d3b853b203c5a4931efda457a0c0882988f4502c1d4ab3c06c6
7
- data.tar.gz: 1b42332fa3e556a0ca035da62641a452fed3b607d4cc0026c6309c4dc7e2ffa096193db1b8385a7ae345386320b014ff37a48519c328f7b1c4ab58192fc8d23d
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
- %{cd #{test_case.app_root} && #{test_case.runner} #{test_case.file} --name=/#{Shellwords.escape(name)}/}
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
- class MinimalRequest
5
- def initialize(disable_spring:)
6
- @disable_spring = disable_spring
7
- end
4
+ def initialize(disable_spring:)
5
+ @disable_spring = disable_spring
6
+ end
8
7
 
9
- def disable_spring?
10
- @disable_spring
11
- end
8
+ def disable_spring?
9
+ @disable_spring
12
10
  end
13
11
  end
14
12
  end
@@ -1,3 +1,3 @@
1
1
  module TestLauncher
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom