Announcing Trinidad: In-process test runner for FitNesse wiki pages

The first public beta release of Trinidad is now available. Trinidad is an in-process test runner for FitNesse tests. Here are some nice things you can do with it:

  • run fitnesse fit and slim tests without starting the server as part of your build
  • run fitnesse tests from JUnit within your IDE
  • debug and troubleshoot fitnesse fixtures as if you were working with unit tests
  • easily include fitnesse acceptance tests into your build (through JUnit)
  • easily run tests in transactions and roll back after each test (with Spring)

For example, here is how you can run an entire FitNesse test suite from JUnit

public class JUnitExampleFitTest {
	JUnitHelper helper;
	@Before
	public void initHelper() throws Exception{
		helper=new JUnitHelper(new TestRunner(
				new FitNesseRepository("target/test-classes"),
				new FitTestEngine(),
				"/tmp/test-output"));
	}
	@Test
	public void runSuite() throws Exception{
		helper.assertSuitePasses("JavaExamples");
	}
	@Test
	public void runSingleTest() throws Exception{
		helper.assertTestPasses(
                   "JavaExamples.CommonExamples.SetUpFixture");
	}
}

At the moment, Trinidad only supports Java FIT/Slim, but .NET is in plan soon. For download links, usage instructions and examples, see http://fitnesse.info/trinidad.