Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The test case running twice when enable autorun #128

Open
Code-Farmer-Ming opened this issue Dec 12, 2023 · 0 comments
Open

The test case running twice when enable autorun #128

Code-Farmer-Ming opened this issue Dec 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Code-Farmer-Ming
Copy link

Code-Farmer-Ming commented Dec 12, 2023

Your environment

  • vscode-ruby-test-adapter version: last
  • Ruby version: 2.7.2
  • VS Code version: 1.8.5
  • Operating System: MacOS 14.1.2
  • RSpec or Minitest version: Minitest 5.20.0

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!

@Code-Farmer-Ming Code-Farmer-Ming added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant