Add a new field in the java.test.config to specify source paths #982
Closed
Description
The sourcePaths
key is not being set for the launch configuration created by this extension. Without adding extra source paths to the launch configuration, my VSCode debugger shows Unknown Source
for all the stack frames that aren’t either found in src/test/java
or the JDK. The Java Test Runner seems to ignore the debug configurations I have created, constructing its own instead — shown below.
Is there some other way to inject extra source paths into the launch configurations created by the Java Test Runner, or some other workaround?
With the setting "java.test.log.level": "verbose"
I see the following Java Test Runner output:
Launching with the following launch configuration: '{
"name": "Launch Java Tests - 01f5fe",
"type": "java",
"request": "launch",
"mainClass": "org.eclipse.jdt.internal.junit.runner.RemoteTestRunner",
"projectName": "<redacted>",
"cwd": "${workspaceFolder}/<redacted>",
"classPaths": [ <redacted> ],
"args": [
"-version",
"3",
"-port",
"51543",
"-testLoaderClass",
"org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader",
"-loaderpluginname",
"org.eclipse.jdt.junit5.runtime",
"-test",
"<redacted>"
],
"vmArgs": [
"-ea"
],
"noDebug": false,
"console": "internalConsole"
}'