-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Customized JUnit5 TestEngine that reads test-scenarios from .json files #1312
Comments
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. |
Hello! @jdneo could you please clarify do I understand correctly that UniqueIdSelector is not supported for now? |
Could you provide more details? Like a sample project or sth? Currently the test discovery is annotation based. Tests annotated by |
The idea is similar to running Do I understand correctly that this configuration is not supported currently in Visual Studio code, since test discovery is annotation based? or maybe there are some additional steps/workaround that can be used to run tests with a custom Thanks |
Since current test discovery is annotation based, looks like your case might not be supported now. Have you tried in Eclipse? If Eclipse supports your case, we should be able to support it too. |
I was able to run tests in IntelliJ IDEA via |
Looks like the custom junit5 TestEngine is not recognized by Visual Studio code. Method |
Our implementation is similar with Eclipse. So, I'm afraid it's not supported right now. Is it possible to share a sample project for your request? |
got it, thank you! |
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:
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
The text was updated successfully, but these errors were encountered: