fitSharp
Folder Runner Set Up Tear Down
This is a description of the set up and tear down features of Folder Runner.

do

Folder Runner uses set up and tear down files to decorate each file that is processed. They are identified by the file names 'setup' and 'teardown' and the extension 'htm' or 'html'.

column
new story file nameis set up?
setup.htmtrue
SeTuP.hTmLtrue
setup.txtfalse

column
new story file nameis tear down?
teardown.htmtrue
TeArDoWn.hTmLtrue
other.htmlfalse

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

namefile systemwithnewfile system

withfile system
make empty foldertest
make empty foldertest\output
alias folderdocument\fitSharp\Fit\SampleOutputFilesasout
alias folderdocument\fitSharp\Fit\SampleInputFilesasin

The decoration occurs before the FIT tests are executed.

withnewfolder runner story
run-c,document\fitSharp\Fit\SampleInputFiles\SampleConfig.xml

withfile system
ensurefiletest\output\SampleSubDecorated\SampleSimpleTest.htmlsame asout\SampleSimpleDecorated.html

Only files which contain HTML tables are decorated.

ensurefiletest\output\SampleSubDecorated\SampleNoTest.htmlsame asin\SampleSubDecorated\SampleNoTest.html

The decoration from parent directories is added to the current directory's decoration. Set up decoration is parent-first, tear down decoration is parent last.

ensurefiletest\output\SampleSubDecorated\SampleSub\SampleSimpleTest.htmlsame asout\SampleNestedDecorated.html
© Copyright Syterra Software Inc. All rights reserved.