Skip to content

Generating HTML output

Joshua Gleitze edited this page Sep 24, 2015 · 2 revisions

The tests we write provide detailed error messages. Nevertheless, one sometimes might like to look at the tested class' output in a whole, including succeeded tests. We now offer a detailed HTML output of test runs.

How to use

If you want to generate HTML output of your program, use the -DoutputFile=path JVM option in your run configuration. A good start would be -DoutputFile=%testname, which will generate a file NameOfTest.html in your project folder after each test run.

The outputFile parameter supports this variables:

  • %testname – the test's name
  • %datetime – a timestamp

If your path contains spaces, quote it. For example, this works: -DoutputFile="/home/josh/With Space/%testname", while this won't: -DoutputFile=/home/josh/With Space/%testname

Example 1 of the HTML output Example 2 of the HTML output

Clone this wiki locally