Hello. I'm trying to run the tests of a Java Maven project but can't see how to set that up. I can run my tests using the plugin interface but it's not using maven's configuration - for instance, it's running my system test when I don't want it to. Is there any way to tell it to use Maven?
@AlexMakesSoftware I'm not sure if I understand your problem correctly. maybe you can check: https://github.com/microsoft/vscode-java-test/wiki/Run-with-Configuration#tldr, if that's not your case, could you provide more details about your issue? e.g. the repro steps.
Hello. I'm trying to debug test a junit test method. VS code prompt :"org.eclipse.jdi.internal.connect.ConnectorImpl$StringArgumentImpl.<init>(Lorg/eclipse/jdi/internal/connect/ConnectorImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V" . Open launch.json.
But if i click the run test button, it does work fine.
Hello. I've created a custom JUnit5 TestEngine that reads test-scenarios from .json files. I would like to run these tests in vscode using the junit-platform-console-standalone.jar without a build tool. I am able to do this manually using PowerShell, e.g.: java -jar junit-standalone.jar -cp engine.jar -f test/my.test.json
I've added the Extension Pack for Java and the following in settings.json:
{
"java.project.referencedLibraries": [
"engine.jar",
"junit-standalone.jar"
],
}
No tests are discovered in the Testing side-bar and nothing happens when clicking Run Tests. Any suggestions?
mvn test
.
findOneById
nested class, the parent test class still gets the initialization error
. Any idea how I can get more details about what's going on?
Hi @Kropie, thank you for being willing for contribution. You can take a look at these ones if you are interested :)
microsoft/vscode-java-test#1465
microsoft/vscode-java-test#1472