All Projects → microsoft → Vscode Java Test

microsoft / Vscode Java Test

Licence: other
Run and debug Java test cases in Visual Studio Code.

Programming Languages

java
68154 projects - #9 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Vscode Java Test

Video Recorder Java
This library allows easily record video of your UI tests by just putting couple annotations.
Stars: ✭ 179 (+1.13%)
Mutual labels:  test, junit, testng
kit-assignment-tests
Test collection for KIT programming assignments (WS16/17)
Stars: ✭ 18 (-89.83%)
Mutual labels:  test, junit
scalatest-junit-runner
JUnit 5 runner for Scalatest
Stars: ✭ 30 (-83.05%)
Mutual labels:  test, junit
action-junit-report
Reports junit test results as GitHub Pull Request Check
Stars: ✭ 103 (-41.81%)
Mutual labels:  test, junit
jpa-unit
JUnit extension to test javax.persistence entities
Stars: ✭ 28 (-84.18%)
Mutual labels:  test, junit
carina
Carina automation framework: Web, Mobile, API, DB etc testing...
Stars: ✭ 652 (+268.36%)
Mutual labels:  test, testng
to-string-verifier
To String Verifier provides an easy and convenient way to test the toString method on your class.
Stars: ✭ 25 (-85.88%)
Mutual labels:  test, junit
Fluentlenium
FluentLenium is a website & mobile automation framework which extends Selenium to write reliable and resilient UI functional tests. This framework is React ready. Written and maintained by people who are automating browser-based tests on a daily basis.
Stars: ✭ 766 (+332.77%)
Mutual labels:  junit, testng
Carina
Carina automation framework: Web, Mobile, API, DB
Stars: ✭ 549 (+210.17%)
Mutual labels:  test, testng
flyway-junit5-extensions
Flyway JUnit 5 Extension to clean / migrate your database in tests.
Stars: ✭ 14 (-92.09%)
Mutual labels:  test, junit
Starwars-clean
Simple project with clean architecture
Stars: ✭ 34 (-80.79%)
Mutual labels:  test, junit
Pitest
State of the art mutation testing system for the JVM
Stars: ✭ 1,185 (+569.49%)
Mutual labels:  junit, testng
Junit Dataprovider
A TestNG like dataprovider runner for JUnit with many additional features
Stars: ✭ 226 (+27.68%)
Mutual labels:  test, junit
Expekt
BDD assertion library for Kotlin
Stars: ✭ 163 (-7.91%)
Mutual labels:  test, junit
Androidunittest
Save time & clear your unit tests on Android !
Stars: ✭ 205 (+15.82%)
Mutual labels:  test, junit
CI-Report-Converter
The tool converts different error reporting standards for deep compatibility with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc).
Stars: ✭ 17 (-90.4%)
Mutual labels:  test, junit
Reporting
Zebrunner Reporting Tool
Stars: ✭ 198 (+11.86%)
Mutual labels:  junit, testng
osgi-test
Testing support for OSGi. Includes JUnit 4 and JUnit 5 support and AssertJ support.
Stars: ✭ 22 (-87.57%)
Mutual labels:  test, junit
Testlogcollectors
A framework for capturing log statements during tests. Compatible with most popular logging frameworks. Works with JUnit and TestNG
Stars: ✭ 31 (-82.49%)
Mutual labels:  junit, testng
Junitperf
⛵️Junit performance rely on junit5 and jdk8+.(java 性能测试框架)
Stars: ✭ 86 (-51.41%)
Mutual labels:  test, junit

Java Test Runner

Run and debug Java test cases in Visual Studio Code

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

Note: JUnit 3 styled tests are not supported in this extension (i.e. extends junit.framework.TestCase).

The Java Test Runner works with Language Support for Java by Red Hat and Debugger for Java to provide the following features:

  • Run/Debug test cases
  • Customize test configurations
  • View test report
  • View tests in Test Explorer
  • Show test logs

Requirements

Quickstart

Run/debug JUnit test

Getting Started for JUnit 5

Please refer to Getting Started from the JUnit 5's official document for getting started guide.

Note: You can use junit-platform-console-standalone.jar in projects that manually manage their dependencies similar to the plain-old JAR known from JUnit 4.

Getting Started for JUnit 4

Please refer to Download and Install from the JUnit 4's official document for the getting started guide.

Getting Started for TestNG

Please refer to TestNG Docs from the TestNG's official document for getting started guide.

Features

Run/Debug Test Cases

Run Code Lens

  • The extension will generate Run Test and Debug Test shortcuts (also known as Code Lens) above the class and method definition. Simply click on them will start running or debugging the target test cases.

Note: If you cannot see the Code Lens in your editor, please refer to this issue comment as a workaround.


Test Explorer

Run Explorer

  • The Test Explorer is the place to show all the test cases in your project. You can also run/debug your test cases from here.
  • Click the node in the Test Explorer will navigate to the location of the source code.

Note: If the Test Explorer is empty, please refer to this issue comment as a workaround.


Customize Test Configurations

Customize Test Configurations

  • Sometimes you may want to customize the configuration for running the test cases. To achieve this, you can add it into your workspace settings under the section: java.test.config.

Note: More details can be found here.


View Test Report

Status Bar

  • After running/debugging the test cases, the status bar will show the final results. Simply click on it to show the Test Report.
  • You can also click the ✔️ or ❌ mark in Code Lens to open the Test Report.

Status Bar

  • You can navigate to the source location of the target test case by clicking the navigate button.

Note: You can use java.test.report.showAfterExecution to configure whether to automatically show the test report after execution. By default, it will be shown when there are failed tests.

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.report.showAfterExecution Specify if the test report will automatically be shown after execution. Supported values are: always, onFailure, never. onFailure
java.test.editor.enableShortcuts Specify whether to show the Code Lenses in editor or not. true
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. ""

FAQ

If you meet any problem when using the extension, please refer to the FAQ to check if there is an answer to your problem.

Contributing and Feedback

If you are interested in providing feedback or contributing directly to the code base, please check the document Contributing to Java Test Runner, which covers the following parts:

License

This extension is licensed under MIT License.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].