java.lang.NoClassDefFoundError: org/junit/runner/manipulation/Filter
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:333)
Class.java:333
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadTestLoaderClass(RemoteTestRunner.java:381)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createRawTestLoader(RemoteTestRunner.java:371)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createLoader(RemoteTestRunner.java:366)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.defaultInit(RemoteTestRunner.java:310)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.init(RemoteTestRunner.java:225)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
Caused by: java.lang.ClassNotFoundException: org.junit.runner.manipulation.Filter
this is the output sorry for send it in in middle of explaining i'm new here
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?