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 either GNU Make or Ant.
- Download jtreg
- Running tests using jtreg
A guide to using jtreg to run OpenJDK jtreg 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.
- Tag specification
The specification of the tag language used in jtreg tests.
Frequently asked questions.
Additional resources, including Adopt OpenJDK pages, presentations and blog entries.
- Mailing Lists
- jtreg Bloggers