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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07d9267a3d99c79915afc72d3d3f248187c3a340
4
- data.tar.gz: abee8b1f87c40d60490370f1f4061842d450d2b1
3
+ metadata.gz: 6b037d56bb5d66021c7e01731332262d1f0b85dd
4
+ data.tar.gz: f88df5c4fe6af76f57d60567207426049a56182a
5
5
  SHA512:
6
- metadata.gz: 5b8eba152d977234ab02d8ed5503ef71fcdeb44c7b2da2ea73ca4740e9d25eba824f5e1493a907dd1c59fd15ed36afab0a8b0328e84505d1c57b727b21a535cc
7
- data.tar.gz: 74652e9d1e9f799bd8e5b85a13eaeb1af3ed229dfbf0f26d50dfebfcc0b4444ebb38332d0c84c2bc5e4c0d81861b8c6f10a8cbf091bb94b84f2ee1c85efed591
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.1.0",
354
+ "version": "2.0.0",
355
355
  "tasks": [
356
356
  {
357
357
  "taskName": "run-test-line",
358
358
  "command": "test_launcher",
359
- "args": ["${file}:${lineNumber}"]
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
- "args": ["${file}"]
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
- "args": ["--rerun"]
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
@@ -1,3 +1,3 @@
1
1
  module TestLauncher
2
- VERSION = "2.8.0"
2
+ VERSION = "2.9.0"
3
3
  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='/test_name_1/'", shell_mock.recall_exec
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='/test_name_1/'", shell_mock.recall_exec
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='/test_name_1/'", shell_mock.recall_exec
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='/test_name_1/'", shell_mock.recall_exec
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='/test_name_2/'", shell_mock.recall_exec
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='/test_name_2/'", shell_mock.recall_exec
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='/test_name_2/'", shell_mock.recall_exec
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.8.0
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-07-24 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler