A lightweight extension to run and debug Java test cases in Visual Studio Code. The extension support following test frameworks:
- JUnit 4 (v4.8.0+)
- JUnit 5 (v5.1.0+)
Note: Currently some of the JUnit 5 features, for example: @ParameterizedTest is not supported yet.
- TestNG (v6.8.0+)
The Java Test Runner works with Language Support for Java by Red Hat and Debugger for Java to provide the following features:
- Run test cases
- Debug test cases
- View test report
- View tests in Test Explorer
You can find the following commands in the Command Palette (F1 / Ctrl + Shift + P):
Java: Show Test Output
: Open the test output window.Java: Cancel Test Job
: Cancel the currently being executed test task.
java.test.report.position
: Specify where to show the test report. Supported values aresideView
,currentView
. The default value issideView
.
- JDK (version 1.8.0 or later)
- VS Code (version 1.23.0 or later)
- Language Support for Java by Red Hat (version 0.14.0 or later)
- Debugger for Java
You can find the full list of issues at Issue Tracker. You can submit a bug or feature suggestion.
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.