Archive for the 'fitnesse' Category

Mar 08 2010

Generating JUnit XML output files from FitNesse

Published by gojko under fitnesse,news

I just pushed a small change to JUnit integration support for FitNesse to github; hopefully this should be merged with Uncle Bob’s master branch soon. The change enables you to output test run stats in Junit XML files, which can then be picked up by Hudson, TeamCity and other CI servers and integrated into their test history statistics.

To enable this feature, override the default test listener in the JUnitHelper instance you use for test runs (third constructor argument), and supply a JUnitXMLTestListener instance passing the folder where you want the XML files in the constructor argument. For example:


 String htmlOutputDir=new File(System.getProperty("java.io.tmpdir"),
                                  "fitnesse").getAbsolutePath();
  String xmlOutputDir=new File(System.getProperty("java.io.tmpdir"),
                                   "fitnesse-xml").getAbsolutePath();
  String fitNesseRootDir=".";
  JUnitXMLTestListener xmlTestListener=new JUnitXMLTestListener(xmlOutputDir);
  JUnitHelper helper =
      new JUnitHelper(fitNesseRootDir,htmlOutputDir,xmlTestListener);
    helper.assertTestPasses(".....");
 


Grab the source from my github repository. Also, check out the full example.

No responses yet

Dec 07 2009

FitNesse book now free online

Published by gojko under fitnesse,news

As of now, the second edition of Test Driven .NET Development with FitNesse is free online. You can download the full PDF version or read the book online in HTML at http://gojko.net/fitnesse.

What’s new in this version?

Since the book was originally released, both FitNesse and the .NET FIT test runner were improved significantly. All the examples in this book are now updated to be compatible with the latest releases of FitNesse (20091121) and FitSharp (1.4). I re-wrote parts that are no longer applicable to the new FitSharp test runner, especially around Cell Operators. In a classic example of self-inflicted scope creep, I also wrote a new chapter on using domain objects directly.

I also changed the tool used for assembling the book. Instead of Apache FOP, I used XEP which will hopefully make the layout a bit better. Fonts (especially the code font) were also changed to make the book easier to read.

What about the paperback

I will make the paperback available soon. At the moment, the second edition is only available online.

No responses yet

Jun 22 2009

Trinidad 1.0.8 released

Published by gojko under fitnesse

Trinidad 1.0.8 is now available. Trinidad is the in-process test runner for FitNesse (java), allowing you to quickly execute, troubleshoot and debug FitNesse tests from your IDE and integrate FitNesse easily with a continuous build system through JUnit or Maven (without running the server). Version 1.0.8 changes include:

  • JUnit Suite Runner (@RunWith) that prints fitnesse test names in JUnit reports (thanks to Johannes Link)
  • Test names in suite results are now now hyperlinks to test outputs (thanks to Björn Beskow)
  • Compatibility with latest FitNesse version (20090513)

For more information, examples and download links see http://fitnesse.info/trinidad

2 responses so far

May 06 2009

What is FitNesse and should I use it video

Published by gojko under fitnesse

Here’s the video from my presentation “What is FitNesse and should I use it” last month at Skills Matter. In this presentation I present the case for agile acceptance testing, explain why we need a tool such as FitNesse and then briefly demonstrate the most important features of that tool. You can also download the slides from this talk from http://gojko.net/resources/whatisfitnesse.pdf.

P.S. don’t forget to sign up for the next testing related talk in Skills Matter:
Acceptance testing tools roundup on May 27th.

No responses yet

Apr 17 2009

SLIM and the future of FitNesse – Video

Published by gojko under fitnesse,presentations,tutorials

Here is the video from my recent presentation “SLIM and the future of FitNesse”. In this talk, I introduce SLIM, the new FitNesse test runner, compare it to FIT and demonstrate its basic features. You can also download the slides

No responses yet

Next »