FitNesse.NET
Folder Runner Basics
This is a description of the basic features of Folder Runner.

do

namefile systemwithnewfile system

The test files used in the following examples are from Sample Input Files and Sample Output Files.

withfile system
make empty foldertestoutput
alias folderdoc\fitnesse\FitnesseDotNet\SampleOutputFilesasout
alias folderdoc\fitnesse\FitnesseDotNet\SampleInputFilesasin

Folder Runner runs the FIT tests from the files in an input directory and writes the results to an output directory.

withnewfolder runner story
run-c,doc\fitnesse\FitnesseDotNet\SampleInputFiles\SampleConfig.xml

Test result counts are accumulated for all files processed.

checkresults5 right, 1 wrong, 0 ignored, 0 exceptions

withfile system
ensurefiletestoutput\SampleSimpleTest.htmlsame asout\SampleSimpleTest.html

Sub-directories are traversed and copied to a matching structure in the output directory.

ensurefiletestoutput\SampleSubFolder\SampleFailingTest.htmlsame asout\SampleFailingTest.html

If a file SuiteSetUp.html exists in a folder, it is run before all other files in that folder.

ensurefiletestoutput\SampleSubFolder\SuiteSetUp.htmlsame asout\SampleSuiteSetUp.html

If a file does not contain any tables, the contents are copied without changes.

ensurefiletestoutput\SampleSubNoTest\SampleNoTest.htmlsame asin\SampleSubNoTest\SampleNoTest.html

A file reportIndex.html is created in the output directory with the FIT results of each file processed and links to the output files.

ensurefiletestoutput\reportIndex.htmlsame asout\SampleReportIndex.html

A file fit.css is created in the output directories with the styles used by FIT to highlight test results. (This is a bit inconsistent because the test files must already have a link to this stylesheet file.)

ensurefiletestoutput\fit.csssame asdoc\fitnesse\fit.css
ensurefiletestoutput\SampleSubFolder\fit.csssame asdoc\fitnesse\fit.css

If a file fit.css already exists in the input directory, it is copied to the output directory and not overwritten with the standard version.

ensurefiletestoutput\SampleSubWithStyle\fit.csssame asin\SampleSubWithStyle\fit.css

The fit.css file is only creates in sub-directories where test results are written.

notfiletestoutput\SampleSubNoTest\fit.cssexists

The input can be a single file.

withnewfolder runner story
run-c,doc\fitnesse\FitnesseDotNet\SampleInputFiles\SampleConfig.xml ,-i,doc\fitnesse\FitnesseDotNet\SampleInputFiles\SampleSimpleTest.html

checkresults1 right, 0 wrong, 0 ignored, 0 exceptions

XML output can be created.

withnewfolder runner story
run-c,doc\fitnesse\FitnesseDotNet\SampleInputFiles\SampleConfigXmlOutput.xml

withfile system
ensurefiletestoutput\XmlOutput.xmlsame asout\SampleXmlOutput.xml

Files and directories can be excluded.

withnewfolder runner story
run-c,doc\fitnesse\FitnesseDotNet\SampleInputFiles\SampleConfig.xml,-x,Sample

checkresults0 right, 0 wrong, 0 ignored, 0 exceptions
© Copyright 2007,2008 Syterra Software Inc. All rights reserved.