JavaTest harness

{{Infobox software

| name = jtreg

| logo =

| screenshot =

| caption =

| developer = Oracle Corporation

| latest release version = 4.1{{cite web| url=https://adopt-openjdk.ci.cloudbees.com/view/OpenJDK/job/jtreg/| title=jtreg 4.1 download| publisher=OpenJDK community| accessdate=2015-12-30}}{{Dead link|date=October 2024 |bot=InternetArchiveBot |fix-attempted=yes }}

| latest release date = {{release date|2012|03|14}}

| latest preview version =

| latest preview date =

| operating system = Cross-platform

| platform = Java Virtual Machine

| programming language = Java

| genre =

| license = GPL+linking exception

| website = {{url|http://openjdk.java.net/jtreg/}}

}}

The JavaTest harness (or jtreg) is a regression tests framework specifically designed by Sun Microsystems to test the reference Java platform implementation.{{cite web

| url=http://openjdk.java.net/jtreg/faq.html

| title=jtreg FAQ

| publisher=Oracle Corporation

| accessdate=2011-05-08}}

Although jtreg was originally designed to execute Technology Compatibility Kit (TCK) compliance tests, it is not designed to check compliance of a particular Java implementation to the specification, but to test any regressions suite for the Java platform.

History

jtreg started in 1997, during JDK 1.2 development.{{cite web

| url=http://blogs.oracle.com/jjg/entry/wwwww_jtreg_who_what_where

| title=wwwww.jtreg: The Who What Where When Why of jtreg

| date=2006-11-13

| last=Gibbons|first=Jonathan| accessdate=2011-05-08}} Being developed prior to JUnit existence, jtreg was initially not compatible with JUnit's test syntax, but later versions added a limited compatibility with JUnit.{{cite web

| url=http://blogs.oracle.com/jjg/entry/jtreg_4_1

| title=jtreg 4.1

| date=2010-05-27

| last=Gibbons|first=Jonathan| accessdate=2011-05-08}}

Use in OpenJDK

OpenJDK, the open-source implementation of the Java programming language

{{ cite web

| url = http://openjdk.java.net/legal/

| title = OpenJDK Legal Documents

| publisher=Sun Microsystems

}} encourages the use of jtreg tests for patch submissions.{{cite web

| url = http://openjdk.java.net/jtreg/

| title = Regression Test Harness for the OpenJDK platform: jtreg

| accessdate = 2008-08-26}}

See also

References

{{Reflist}}