vscode-java-test
vscode-java-test copied to clipboard
Wrong Testing Result Display
What happened?
Run test from the side panel and it display with green icon while the test cannot even build.
Those 'dark' green check marks are the history test status.
You can run the command Test: Clear All Results
to reset them.
What's your build error in the output channel?
Those 'dark' green check marks are the history test status.
You can run the command
Test: Clear All Results
to reset them.What's your build error in the output channel?
Thanks for pointing out the 'dark' icon's meaning. The build error is caused by an undefined symbol. I cannot reproduce it again and I will reopen the issue once I meet it again.
@jdneo To reproduce,
- make an build error caused by a wrong usage of assert methods. E.g. assertTrue(String)
- run the test from the sidebar by clicking the triangle button and wait for prompt error message
- click "Continue", and the icon would be green check again.
Build error:
Tested with "Test: Clear All Results", the icon does not change (in a untested statu not a error status).
Ok, so the green check in step 3 is a history status.
A better solution might be that display the compilation error in the peek view and mark the test as failed.
Yep, it shows the history status when meeting a compilation error. I suggest to mark it as a test error instead of test failed to distinguish between wrong test code and wrong source code.