The
TestRunner has the option to generate and XML report. The idea being that another process may read the XML outputs and generate some other report. It has been suggested that the XML follow the JUnit format although it doesn't seem to fit.
example command line:
java fitnesse.runner.TestRunner -xml stdout localhost 9123 PageName
Included page: CreateSamplePages (edit)
script |
Page Builder |
line |
!path classes |
line |
!path fitnesse.jar |
line |
!contents |
page |
SuiteFodder |
script |
Page Builder |
line |
!|fitnesse.testutil.PassFixture| |
page |
SuiteFodder.TestPassing |
script |
Page Builder |
line |
!|fitnesse.testutil.FailFixture| |
page |
SuiteFodder.TestFailing |
script |
Page Builder |
line |
!|fitnesse.testutil.IgnoreFixture| |
page |
SuiteFodder.TestIgnoring |
script |
Page Builder |
line |
!|fitnesse.testutil.ErrorFixture| |
page |
SuiteFodder.TestCrashing |
Test Runner Fixture |
args |
page name |
output? |
-xml stdout |
SuiteFodder.TestPassing |
$testXml= |
script |
string comparator |
ensure |
string |
$testXml |
starts with |
<?xml version="1.0"?> |
ensure |
string |
$testXml |
ends with |
</testResults>\n\n |
ensure |
string |
$testXml |
contains |
<pageHistoryLink>SuiteFodder.TestPassing?pageHistory |
Test Runner Fixture |
args |
page name |
output? |
-xml stdout |
SuiteFodder |
$suiteXml= |
script |
string comparator |
ensure |
string |
$suiteXml |
contains |
<right>1</right> |
ensure |
string |
$suiteXml |
contains |
<wrong>1</wrong> |
ensure |
string |
$suiteXml |
contains |
<ignores>1</ignores> |
ensure |
string |
$suiteXml |
contains |
<exceptions>1</exceptions> |