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

|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