Run and debug Java test cases in Visual Studio Code
A lightweight extension to run and debug Java test cases in Visual Studio Code. The extension support following test frameworks:
Note: JUnit 3 styled tests are not supported in this extension (i.e. extends
Note: More details can be found here.
Test: Peek Outputto peek the result view.
There are other VS Code embedded commands for testing, which can be found by searching
Test: in the Command Palette.
|Setting Name||Description||Default Value|
||Specify the configuration for the test cases to run with. More details.||
||Specify the name of the default test configuration.||
There are some other VS Code embedded settings for testing, which can be found by searching
testing in the Settings view.
Please refer to Getting Started from the JUnit 5's official document for getting started documentation.
Note: If your project does not use build tools(Maven/Gradle/...), please make sure junit-platform-console-standalone.jar is on your project classpath.
Please refer to Download and Install from the JUnit 4's official document for the getting started documentation.
Please refer to TestNG Docs from the TestNG's official document for getting started documentation.
If you are interested in providing feedback or contributing directly to the code base, please check the document Contributing to Test Runner for Java, which covers the following parts:
This extension is licensed under MIT License.
This extension collects telemetry data to help improve our products. Please read Microsoft privacy statement to learn more. If you opt out to send telemetry data to Microsoft, please set below configuration in settings.json:
telemetry.enableTelemetry = false. Learn more in our FAQ.