The FitNesse plug-in for Jenkins/hudson is lame. Bob expects you to go out and look at the history files in FitNesse, or something, to see the results.
We run our FitNesse tests in Jenkins with a JUnit that Gojko Adzic wrote. Here is our source. The comments tell you how to use the command line for running FitNesse. I can provide more details if needed. We can look at FitNesse results for each run in Jenkins exactly the same way as we would thru the FitNesse wiki. It rocks.
package com.eplan;
import fitnesse.junit.JUnitHelper;
import fitnesse.junit.JUnitXMLTestListener;
import junit.framework.TestCase;
/**
* Runs a given Fitnesse suite from a given home, and produces output to the given directory.
* <p>Behavior is modified through system properties:
* <ul>
* <ol>fitnesse.home - The directory containing FitNesseRoot
* <ol>output.dir - Directory where fitnesse output is to go
* <ol>
suite.name - Full url/name of suite to run
* </ul>
*/
public class SuiteJUnitTest extends TestCase {
private JUnitHelper helper;
String xmlOutputDir = System.getProperty("xml.output.dir");
JUnitXMLTestListener xmlTestListener = new JUnitXMLTestListener(xmlOutputDir);
public void setUp() {
helper = new JUnitHelper(System.getProperty("fitnesse.home"), System.getProperty("html.output.dir"), xmlTestListener);
helper.setPort(5000);
}
public void testFixtureJUnit() throws Exception {
helper.assertSuitePasses(System.getProperty("
suite.name"));
--
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com@lisacrispin on Twitter
http://entaggle.com/lisacrispin