# Test Runner for Java

> Run and debug JUnit and TestNG tests in VS Code

Source: https://talira.ai/catalog/test-runner-for-java-wk3aabhc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / testing / test runners](https://talira.ai/categories/developer-tools/testing/test-runners), [languages / java](https://talira.ai/categories/languages/java)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [Microsoft](https://talira.ai/orgs/microsoft.md)
- Funding: public company (NASDAQ:MSFT)[^3]

Test Runner for Java is Microsoft's extension (vscjava.vscode-java-test) that runs and debugs [Java](https://talira.ai/catalog/java-4ptdc599.md) tests in [Visual Studio Code](https://talira.ai/catalog/visual-studio-code-k779xgqd.md): [JUnit](https://talira.ai/catalog/junit-5m3wz291.md) 4, 5 and 6 and TestNG, though not JUnit 3-style tests. It puts run buttons beside test classes and methods, lists tests in VS Code's Test Explorer, shows a test report and lets you customize test configurations. It works with Red Hat's Language Support for Java and Microsoft's Debugger for Java, needs JDK 17 or later, and is on the VS Code Marketplace and Open VSX.

## Links

- GitHub: https://github.com/microsoft/vscode-java-test
- Docs: https://code.visualstudio.com/docs/java/java-testing

## Problems it solves

- run a single JUnit test from VS Code
- see my Java test results in the editor
- debug a failing TestNG test in VS Code

## Features

- run and debug tests from the editor
- JUnit 4, 5 and 6 and TestNG
- Test Explorer integration
- test reports
- custom test configurations

## Limitations

- Doesn't support JUnit 3-style tests (classes extending junit.framework.TestCase)[^1]
- Needs JDK 17 or later, Language Support for Java and Debugger for Java[^1]

## Trust

Overall: 0.56 out of 1.
Signals: maintenance 0.83, adoption 0.51, momentum 0.19, community 0.64, backing 0.55, extensibility 0.00.

- last commit 12 days ago
- 34 commits in the last 90 days
- latest release 0.47.0 40 days ago
- 342 GitHub stars
- 39 contributors
- backed by Microsoft
- funding: public company (NASDAQ:MSFT)

## Alternatives

- [Jest Runner](https://talira.ai/catalog/jest-runner-4c9qct89.md): Runs and debugs a single JavaScript or TypeScript test from VS Code, for Jest, Vitest, Playwright and more

## Sources

[^1]: https://github.com/microsoft/vscode-java-test/blob/main/README.md (checked 24 Nov 2026)
[^2]: https://github.com/microsoft/vscode-java-test/blob/main/LICENSE.txt (checked 24 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
