Regression Test Harness for the JDK: jtreg

jtreg is the test harness used by the JDK test framework. This framework is intended primarily for regression tests. It can also be used for unit tests, functional tests, and even simple product tests -- in other words, just about any type of test except a conformance test, which belong in a TCK.

As well as API tests, jtreg is designed to be well suited for running both positive and negative compiler tests, simple manual GUI tests, and (when necessary) tests written in shell script. jtreg also takes care of compiling tests as well as executing them, so there is no need to precompile any test classes.

For a more detailed introduction to jtreg, see An Introduction to jtreg.

Building jtreg

A guide to building jtreg using GNU Make.

Running tests using jtreg

A guide to using jtreg to run OpenJDK jtreg tests.

Testing the JDK

The OpenJDK Developers' Guide section on running tests.

Using JVM and javac options with jtreg

A detailed guide explaining how JVM and javac options on the command line affect how tests are run.

Command Line Options

A listing of all jtreg command line options.

Writing jtreg tests

A guide to writing OpenJDK jtreg tests.

Shell Tests in jtreg

Information on writing shell tests in jtreg.

Tag specification

The specification of the tag language used in jtreg tests.


Frequently asked questions.

jtreg plugin for IntelliJ IDE

This is a convenience plugin which adds jtreg capabilities to the IntelliJ IDE. With this plugin, OpenJDK developers can write, run, and debug jtreg tests without the need of leaving their IDE environment.

jtreg project

Primarily for developers working on the implementation of jtreg.