You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run all tests in the file using the text 'Run in Terminal' that is above the class name
This runs:
{some path}/test_name.rb --name "/TestName(#|::)/"
Code snippet or error message
Running 3 tests in a single process (parallelization threshold is 50)
# Running tests with run options --name "/TestName(#|::)/" --seed 14178:
Finished tests in 0.000759s, 0.0000 tests/s, 0.0000 assertions/s.
0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
I believe the name matching using --name argument doesn't actual run all the tests as required and as a result the summary at the end is incorrect. I have introduced an assert that should fail in my test however, no failures occur when I run all the tests using the 'Run in Terminal' button above the class name. When I run that individual test using 'Run in Terminal' then it does indeed fail as it should.
Please let me know if any other information is needed. Thanks!
The text was updated successfully, but these errors were encountered:
sanjani-thatch
added
bug
Something isn't working
vscode
This pull request should be included in the VS Code extension's release notes
labels
Oct 1, 2024
sanjani-thatch
changed the title
Run in terminal command is not running test properly
Run in terminal command above class name is not running all tests properly
Oct 1, 2024
@sanjani-thatch I suspect this is related to the structure of that particular test file. Are you able to share a minimal reproducible example of the code?
Sorry for the late response @andyw8. I have attached a simple test file that doesn't work and a picture of the output I get when running it. I believe it has something to do with the describe method being used as without it I am getting the correct results.
Also just to note: this wasn't occurring previously with the same structure in our tests, it has been happening more recently (~1 month) probably due to changes with the Run in Terminal command.
I could not upload a ruby file so I put it into a text file here: basic_test.txt
Description
Ruby LSP Information
VS Code Version
1.93.1
Ruby LSP Extension Version
0.8.2
Ruby LSP Server Version
0.18.4
Ruby LSP Addons
Ruby Version
3.3.5
Ruby Version Manager
rbenv
Installed Extensions
Click to expand
Ruby LSP Settings
Click to expand
Workspace
User
Reproduction steps
{some path}/test_name.rb --name "/TestName(#|::)/"
Code snippet or error message
I believe the name matching using --name argument doesn't actual run all the tests as required and as a result the summary at the end is incorrect. I have introduced an assert that should fail in my test however, no failures occur when I run all the tests using the 'Run in Terminal' button above the class name. When I run that individual test using 'Run in Terminal' then it does indeed fail as it should.
Please let me know if any other information is needed. Thanks!
The text was updated successfully, but these errors were encountered: