Jan 26 2009

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

Published by gojko at 5:22 pm under articles,fitnesse

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.


Get notified when I post something new - subscribe via RSS or Twitter!

3 responses so far

3 Responses to “Announcing Trinidad: In-process test runner for FitNesse wiki pages”

  1. ehsavoieon 28 Jan 2009 at 3:12 pm

    Great news !!!
    This is something that was missing from FitNesse, that was great in GreenPepper.
    Now if we could combine the wiki history with the scm we would have a great tool to integrate acceptance testing in the project lifecycle. The dream of having developpers, testers and business in one project team would be a step closer to reality ;o)
    Emmanuel

  2. Gilleson 02 Feb 2009 at 10:58 am

    Great initiative!!
    I’m eager to get the .NET version because debugging fixture is a real pain for my clients.

  3. Atulon 29 Mar 2010 at 8:40 am

    Hi

    I have been extensively using fitnesse for sub system testing in my current project.Debugging fitnesses is a real pain .I am really looking forward to the .Net version of Trinidad.

Trackback URI | Comments RSS

Leave a Reply