BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Tutorial: Using FitNesse with .NET

Tutorial: Using FitNesse with .NET

Bookmarks
Gojko Adzic has produced a short tutorial [pdf] on getting FitNesse to work for .NET applications. FitNesse is an enhancement to Fit, the acceptance testing framework developed by Ward Cunningham:
Fit works by reading tables in HTML files, produced with a tool like Microsoft Word. Each table is interpreted by a "fixture" that programmers write. The fixture checks the examples in the table by running the actual program.
FitNesse leverages Fit to provide a collaborative environment for developers and business users to create the acceptance tests which are then automated with Fit test fixtures:
FitNesse is an HTML and wiki "front-end" to FIT. While Fit makes it possible to run test tables, it does not itself provide an easy means of creating those tables or displaying the results of those tests. This is where FitNesse comes in. FitNesse makes it really easy to create, run, organize, annotate, and share Fit tests throughout a software development team.
Fit and FitNesse are powerful tools for agile development teams. The issue, writes Gojko, is that the FitNesse documentation focuses on the Java implementation, which too often leaves .NET users to fend for themselves:
The online user guide deals only with the Java integration, and .Net implementation has a lot of subtle differences. Details of those specifics are scattered throughout the Internet, so I spent quite some time collecting partial information from blogs, but on the end, all the roads lead to the debugger. FitNesse.Net is, fortunately, open source, so I got the source code from Sourceforge and found what is really going on. As I could not find a complete, consolidated guide that explains how to start testing .Net code with FitNesse, I decided to write one myself and share it, so that others do not have to learn it from the debugger.
Gojko's tutorial helps .NET users new to FitNesse get up and running, from download to installation to writing their first test fixtures. Anyone seeking information beyond this can find it in the book Fit for Developing Software, by Rick Mugridge and Ward Cunningham.

Rate this Article

Adoption
Style

BT