To test .NET applications with Slim, you'll need to add the .NET
Slim server provided by
fitSharp. Here's how to do that:
- Go to the github download page and click on the "release.x.x.zip" file. Save this file in your favorite download spot and then unzip it into a program folder, e.g., c:\Program Files\fitSharp.
- Add the following to the root page of your Slim tests. This could be the root of your FitNesse wiki (e.g., localhost:8080/root) if you're only doing Slim tests, or on the Slim test page or suite page if you have a mix of Slim and Fit tests in your wiki.
!define TEST_SYSTEM {slim}
!path c:\myfolder\mytest.dll
!define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner,c:\program files\fitsharp\fitsharp.dll %p}
!define TEST_RUNNER {c:\program files\fitsharp\Runner.exe}- Make sure your FitNesse root (e.g., localhost:8080/root) doesn't contain Java paths. If you find the following, remove them.
!path classes
!path fitnesse.jar
!path fitlibrary.jar
- Write your Slim test tables and test fixtures as described on the FitNesse Slim pages.
- To run Slim tests from the command line, you can use the FitNesse Java TestRunner. This works with all types of Slim tests, including .NET.