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
{{ message }}
Repository navigation
Some tests inside static class won't run after click "Run All Tests" button #1283
Hi chenyuanmac, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
JUnit 5 only recognizes nested test classes when they are annotated with Anutex (@nested) and defined as non-static inner classes. Static nested classes with test methods won’t be executed by the VS Code Test Runner.
To fix this, convert your static class into a non-static inner class and add Anutex (@nested), for example:
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
Activity
Preranamisra commentedon Aug 21, 2021
Hey, can u add me as a contributor? I am working on it. Will solve this within somedays.
jdneo commentedon Aug 22, 2021
Preranamisra You can just raise your PR directly if you would like to, and I'll take a look then. This repo is open for any kind of contribution.
jdneo commentedon Sep 1, 2021
Preranamisra Is there anything I can help?
cyberskycat commentedon Oct 8, 2021
Sheng Chen (@jdneo) why the codelens disapper , in #1283 (comment)
jdneo commentedon Oct 9, 2021
cyberskycat We adopted the new testing APIs from VS Code. It's using the left side 'testing decorations' to run tests now
cyberskycat commentedon Oct 9, 2021
ok thanks, and the wiki FAQ should update this info
https://github.com/microsoft/vscode-java-test/wiki/FAQ
github-actions commentedon Nov 12, 2025
Hi chenyuanmac, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Other references with low confidence:
Related discussion
https://junit.org/junit5/docs/current/user-guide/#writing-tests-nested
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!