test_launcher 2.8.0 → 2.9.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 +15 -4
- data/lib/test_launcher/frameworks/minitest.rb +1 -1
- data/lib/test_launcher/version.rb +1 -1
- data/test/test_launcher/minitest_integration_test.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b037d56bb5d66021c7e01731332262d1f0b85dd
|
4
|
+
data.tar.gz: f88df5c4fe6af76f57d60567207426049a56182a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d661ffc05735357b8b74ea8f982d39d1d91f4f6d383330645e98f9f51967306e62cc192256ac9839bc83080e05ead4a8266e80729fe89374e0aa5a253d4a2fa2
|
7
|
+
data.tar.gz: d6490649619043ec9ce41da84c88e3d197b24f16814d103f888f69f6ee9c176350a0b1e18c73ef68744db78016187db3c182b6ffa6097ee0f75012ba8c9fc910
|
data/README.md
CHANGED
@@ -351,22 +351,33 @@ You can add these to your `.vscode/tasks.json` file:
|
|
351
351
|
|
352
352
|
```
|
353
353
|
{
|
354
|
-
"version": "0.
|
354
|
+
"version": "2.0.0",
|
355
355
|
"tasks": [
|
356
356
|
{
|
357
357
|
"taskName": "run-test-line",
|
358
358
|
"command": "test_launcher",
|
359
|
-
"
|
359
|
+
"runner": "terminal",
|
360
|
+
"args": [
|
361
|
+
"${file}:${lineNumber}",
|
362
|
+
"--disable-spring"
|
363
|
+
]
|
360
364
|
},
|
361
365
|
{
|
362
366
|
"taskName": "run-test-file",
|
363
367
|
"command": "test_launcher",
|
364
|
-
"
|
368
|
+
"runner": "terminal",
|
369
|
+
"args": [
|
370
|
+
"${file}",
|
371
|
+
"--disable-spring"
|
372
|
+
]
|
365
373
|
},
|
366
374
|
{
|
367
375
|
"taskName": "rerun-last-test",
|
368
376
|
"command": "test_launcher",
|
369
|
-
"
|
377
|
+
"runner": "terminal",
|
378
|
+
"args": [
|
379
|
+
"--rerun"
|
380
|
+
]
|
370
381
|
}
|
371
382
|
]
|
372
383
|
}
|
@@ -93,7 +93,7 @@ Open an issue on https://github.com/petekinnecom/test_launcher if this is someth
|
|
93
93
|
class Runner < Base::Runner
|
94
94
|
def by_line_number(test_case)
|
95
95
|
if test_case.example
|
96
|
-
single_example(test_case)
|
96
|
+
single_example(test_case, exact_match: true)
|
97
97
|
else
|
98
98
|
single_file(test_case)
|
99
99
|
end
|
@@ -582,25 +582,25 @@ module TestLauncher
|
|
582
582
|
assert_equal "cd /src && bundle exec ruby -I test -e 'ARGV.each {|f| require(f)}' /src/test/file_1_test.rb", shell_mock.recall_exec
|
583
583
|
|
584
584
|
launch("file_1_test.rb:2", searcher: searcher)
|
585
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
585
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_1'", shell_mock.recall_exec
|
586
586
|
|
587
587
|
launch("file_1_test.rb:3", searcher: searcher)
|
588
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
588
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_1'", shell_mock.recall_exec
|
589
589
|
|
590
590
|
launch("file_1_test.rb:4", searcher: searcher)
|
591
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
591
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_1'", shell_mock.recall_exec
|
592
592
|
|
593
593
|
launch("file_1_test.rb:5", searcher: searcher)
|
594
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
594
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_1'", shell_mock.recall_exec
|
595
595
|
|
596
596
|
launch("file_1_test.rb:6", searcher: searcher)
|
597
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
597
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_2'", shell_mock.recall_exec
|
598
598
|
|
599
599
|
launch("file_1_test.rb:7", searcher: searcher)
|
600
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
600
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_2'", shell_mock.recall_exec
|
601
601
|
|
602
602
|
launch("file_1_test.rb:8", searcher: searcher)
|
603
|
-
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='
|
603
|
+
assert_equal "cd /src && bundle exec ruby -I test /src/test/file_1_test.rb --name='test_name_2'", shell_mock.recall_exec
|
604
604
|
end
|
605
605
|
|
606
606
|
def test__by_line_number__multiple_files
|
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.9.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: 2017-
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|