connorshea / vscode-ruby-test-adapter

A Ruby test adapter extension for the VS Code Test Explorer
https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter
MIT License
83 stars 50 forks source link

The test case running twice when enable autorun #128

Open Code-Farmer-Ming opened 7 months ago

Code-Farmer-Ming commented 7 months ago

Your environment

Expected behavior

the test case should be only running once

Actual behavior

twice

[2023-12-12 12:39:07.455] [INFO] A test file has been edited, reloading tests. [2023-12-12 12:39:07.455] [INFO] Loading Ruby tests... [2023-12-12 12:39:07.455] [INFO] Loading Minitest tests... [2023-12-12 12:39:07.455] [INFO] Getting a list of Minitest tests in suite with the following command: bundle exec rake -R $EXT_DIR vscode:minitest:list [2023-12-12 12:39:07.457] [INFO] Sending autorun event [2023-12-12** 12:39:07.457] [INFO] Running Ruby tests ["./test/controllers/public/foo_bar_controller_test.rb[12]"] [2023-12-12 12:39:07.458] [INFO] Getting a list of Minitest tests in suite with the following command: bundle exec rake -R $EXT_DIR vscode:minitest:list [2023-12-12 12:39:12.320] [DEBUG] Passing raw output from dry-run into getJsonFromOutput.

[2023-12-12 12:39:12.326] [INFO] Running single test: /Users/home/project/test/controllers/public/foo_bar_controller_test.rb:12

[2023-12-12 12:39:12.326] [INFO] Running command: bundle exec rake -R $EXT_DIR vscode:minitest:run 'test/controllers/public/mobile_tokens_controller_test.rb:12' [2023-12-12 12:39:12.327] [DEBUG] Passing raw output from dry-run into getJsonFromOutput. ....

[2023-12-12** 12:39:12.336] [INFO] Running Ruby tests ["./test/controllers/public/foo_bar_controller_test.rb[12]"]

[2023-12-12 12:39:12.336] [INFO] Running single test: /Users/home/project/test/controllers/public/foo_bar_controller_test.rb:12

[2023-12-12 12:39:12.337] [INFO] Running command: bundle exec rake -R $EXT_DIR vscode:minitest:run 'test/controllers/public//foo_bar_controller_test.rb:12'

This section should include any relevant screenshots, code samples, console output, etc. The more information we have to reproduce the better!