JavaTest harness

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Developer(s) Oracle Corporation
Stable release
4.1[1] / March 14, 2012 (2012-03-14)
Written in Java
Operating system Cross-platform
Platform Java Virtual Machine
License GPL+linking exception

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

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.[2]


jreg started in 1997, during JDK 1.2 development.[3] Being developed prior to JUnit existence, jtreg was initially not compatible with JUnit's test syntax,[2] but later versions added a limited compatibility with JUnit.[4]

Use in OpenJDK[edit]

OpenJDK, the open source implementation of the Java programming language[5] encourages the use of jtreg tests for patch submissions.[6]

See also[edit]


  1. ^ "jtreg 4.1 download". OpenJDK community. Retrieved 2015-12-30. 
  2. ^ a b c "jtreg FAQ". Oracle Corporation. Retrieved 2011-05-08. 
  3. ^ Gibbons, Jonathan (2006-11-13). "wwwww.jtreg: The Who What Where When Why of jtreg". Retrieved 2011-05-08. 
  4. ^ Gibbons, Jonathan (2010-05-27). "jtreg 4.1". Retrieved 2011-05-08. 
  5. ^ "OpenJDK Legal Documents". Sun Microsystems. 
  6. ^ "Regression Test Harness for the OpenJDK platform: jtreg". Retrieved 2008-08-26. 

External links[edit]