vscode-java-test
vscode-java-test copied to clipboard
Support Customized JUnit5 TestEngine that reads test-scenarios from .json files
Referenced from @emyklebost:
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?
I've created a branch with my vscode setup and some screenshots as examples: https://github.com/emyklebost/fhir-tdp/tree/vscode-integration
Cucumber's JUnit5 Test Engine is also relevant. Adding support for other DiscoverySelectors than Class- and Method-Selectors will allow for tests written in Gherkin and other custom DSLs to be discovered and runnable in vscode.