To run tests from the
FitNesse wiki, we add the following to the root page of our Fit tests. This could be the root of our FitNesse wiki (e.g., localhost:8080/root) or on the Fit test page or suite page.
[!path assemblies]
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer,c:\program files\fitsharp\fit.dll [-c suiteconfig] [-a appconfig] [%p]}
!define TEST_RUNNER {c:\program files\fitsharp\Runner.exe} where:
There are two ways to load the assemblies that contain our fixtures and our system under test:
- With the !path definition. If we use a !path, we include the %p parameter in the COMMAND_PATTERN. If there is no !path, we omit the %p.
- In a Suite Configuration File
Example:
!path c:\mypath\myCode.dll
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer,c:\program files\fitsharp\fit.dll %p}
!define TEST_RUNNER {c:\program files\fitsharp\Runner.exe} To run FitNesse tests from the command line, we use
Test Runner.