1

I am using Hudson to continuously integrate a project using JTReg testing framework. As far as I know, jtreg doesn't output JUnit-style XML reports. Is there a way to publish jtreg tests into Hudson reporting?

I saw an IcedTea blog post about integrating Hudson with a slightly-modified version of jtreg, but I cannot find that version.

Has anyone built a converter tool that, given jtreg reports, will generate JUnit reports?

3 Answers 3

1

There is a small script I'm using to create junit xml result files from jtreg results generated during openjdk's build process. It is a bit hackish, but seems to work...

jtreg2junit.sh:

https://gist.github.com/2581071

1
1

You can use a newer version of jtreg (vailable on the openjdk website) to produce junit-happy xml files, as follows

jtreg -jdk:...  -xml .....

or jtreg -jdk:... -xml:verify ...

This will generate FooBar.jtr.xml ie. the the jtr in xml format, which can be loaded and interpreted by a hudson/jenkins system as junit test. The latter option verifies the output using the SAXParser pin-point any issues that the xml file might have, running this slows down jtreg, but this is better than chasing obscure hudson/jenkins errors.

0

Take a look at the xUnit plugin. It is designed to read in test results from any unit test framework.

2
  • Thanks! Unfortunately, it doesn't claim to support jtreg!
    – notnoop
    Oct 2, 2009 at 14:39
  • Yes, the whole point of the xunit plugin is that you can write a simple XSL conversion for any XML file format - including jtreg. Oct 5, 2009 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.