microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
290 stars 124 forks source link

junit not support to scan test case in src/main/java folder #1682

Closed nowsdt closed 2 months ago

nowsdt commented 2 months ago

not support write test case in src/main/java folder, only support write case in /src/test/java, but idea,eclipse support. sometimes ,we write test case in src/main/java just want to instead main method for quick test

jdneo commented 2 months ago

Basically, we scan the test cases according to the configuration in build.gradle/pom.xml.

See: https://github.com/microsoft/vscode-java-test/wiki/FAQ

In the future, if the capability of marking a source root as test root is supported, this issue can be resolved by marking src/main/java as test.