My project requires the following vmArgs to run :
"vmArgs": "-javaagent:lib/aspectjweaver-1.9.5.jar -javaagent:lib/spring-instrument-5.2.3.RELEASE.jar --module-path lib/javafx-sdk-13.0.2/lib --add-modules=javafx.controls"
Putting this in the launch.json configuration object makes the project run perfectly. For unit tests, the same vmArgs should be put into the settings.json's java.test.config object, which I did as you see below :
{
"java.test.config":
[
{
"name": "testConfig",
"workingDirectory": "${workspaceFolder}",
"vmArgs": "-javaagent:lib/aspectjweaver-1.9.5.jar -javaagent:lib/spring-instrument-5.2.3.RELEASE.jar --module-path lib/javafx-sdk-13.0.2/lib --add-modules=javafx.controls"
}
],
"java.test.defaultConfig": "testConfig"
}
This part is not working. My JUnit tests are not being instrumented correctly. What am I doing wrong? The vmArgs line is an exact copy of what I have in launch.json.
java.test.config
) and (ii) arguments are proivided in a comma separated list enclosed in a square bracket. Could this be a reason? What is an exact error message you are getting? – Grew