This year I am trying to help our team get up and running with unit testing. After sifting through CD unit testing posts and mentor video tutorials, I have gotten to the point where “./gradlew build” is successfully running tests. However the VSCode integrated java test runner is not working.
After encountering the same problem described in last year’s post Unit Testing: java.io.IOException: wpiHaljni , and following ThadHouse’s solution
Now clicking “Run Test” in VSCode results in:
A new Java Test Report frame opening indicating a Failed test status and the following in the Debug Console:
HAL Extensions: No extensions found
Note: dev env is linux.
./.vscode/settings.json contains:
"java.test.config": [
{
"name": "WPIlibUnitTests",
"workingDirectory": "${workspaceFolder}/build/tmp/jniExtractDir",
"vmargs": [ "-Djava.library.path=${workspaceFolder}/build/tmp/jniExtractDir" ],
"env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/build/tmp/jniExtractDir",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/tmp/jniExtractDir",
"PATH": "${env:PATH};build/tmp/jniExtractDir"
}
}
]
Any thoughts on what to try next would be greatly appreciated?