Oct
23
2009
Mockito is a fantastic mock library for Java. I’m fascinated by how easy it is to use, compared to other things out there both in the Java and .NET world. Here is everything you need to know to get started in six really easy examples. Continue Reading »
Jan
26
2009
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.
Aug
25
2008
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 »
Mar
24
2008
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.
Mar
10
2008
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 »