Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 3.17 KB

README.md

File metadata and controls

61 lines (40 loc) · 3.17 KB

Java Test Runner

Travis CI Total alerts Gitter

Overview

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+)
  • 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

Usage

Run/debug JUnit test

Available commands

You can find the following commands in the Command Palette (F1 / Ctrl + Shift + P):

  • Java: Show Test Output: Open the test output window.
  • Java: Open Test Runner Log: Open the log file.
  • Java: Cancel Test Job: Cancel the currently being executed test task.

Supported VSCode settings

Setting Name Description Default Value
java.test.report.position Specify where to show the test report. Supported values are: sideView, currentView. sideView
java.test.log.level Specify the level of the test logs. Supported values are: error, info, verbose. info
java.test.config Specify the configuration for the test cases to run with. More details. {}
java.test.defaultConfig Specify the name of the default test configuration. ""

Requirements

Feedback and Questions

You can find the full list of issues at Issue Tracker. You can submit a bug or feature suggestion.

Feel free to Gitter when you meet any problem.

License

This extension is licensed under MIT License.

Data/Telemetry

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.