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.

Concordion: Agile Acceptance Testing with free-form text

I finally had some time to take a look at Concordion, an acceptance testing tool that I’ve heard about on several conferences. Concordion is an interesting alternative to FIT. It is developed by David Peterson and released under the Apache opensource license. Similar to FIT, Concordion uses HTML documents as an executable specification and requires some glue code (fixtures) to connect the executable elements of that specification to the domain code. Unlike FIT, Concordion does not require the specification to be in any particular format — you can write examples as normal sentences, without any restrictions. Continue reading

Fixture Gallery is now available

I’ve finally completed the first version of my Fixture Gallery idea. Fixture Gallery is a cookbook for FIT/FitNesse tests. It provides developers with a quick overview of the most important fixture types and concepts for agile acceptance testing using the FIT framework. For each fixture type, this document explains the table format and fixture class structure and provides advice when to use and when not to use it. Each example is accompanied by the source code for Java and .NET FIT implementations, in a form that can be easily copied and used as a template for similar fixtures. Download the first release.

DbFit 1.0: support for in/out parameters, blank-padded strings and querying stored results

I am pleased to finally announce version 1.0 of DbFit. DbFit is an extension to FIT/FitNesse that makes test-driven database development easy. Version 1.0 (2008-03-10) is a major cleanup release, finally bringing proper documentation for the library as well. Grab it from SourceForge.
Continue reading