How to get FitNesse to switch to .Net mode – level 300
FitNesse is an acceptance test framework that supports Java and .Net. When you download it, it will be in Java mode, and all the sample test pages will run Java tests. It may not be completely clear how to run a new test page against a .Net assembly instead of a Java package. When you create a new page, add the following:
!define COMMAND_PATTERN {%m %p}
!define TEST_RUNNER {dotnetFitServer.exe}
!define PATH_SEPARATOR {;}
!path dotnetfit.dll
!path dotnet*.dll
|eg.Calculator|
|points?|
|false |
This will run the included Calculator fixture in eg.dll that is included with the download, so you don’t have to write any code yourself. Note that the FitNesse web server is a Java wiki, so you’ll need the JRE from sun.
Very timely. Just installed FitNesse on Friday and we’re doing .NET development, so this was a helpful kickstart. Just ordered the FIT book by Cunnigham & Mugbridge also, so I hope that is helpful. The docs online seem somewhat cryptic.
I need to do some reading up on how to get a .NET suite set up. I know there is an example in there, so I’m gonna go read that. Maybe I’ll write that up on my own blog.