This is a description of the set up and tear down features of
Folder Runner.
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 name | is set up? |
setup.htm | true |
SeTuP.hTmL | true |
setup.txt | false |
column |
new story file name | is tear down? |
teardown.htm | true |
TeArDoWn.hTmL | true |
other.html | false |
The test files used in the following examples are from
Sample Input Files and
Sample Output Files.
name | file system | with | new | file system |
with | file system |
make empty folder | test |
make empty folder | test\output |
alias folder | document\fitSharp\Fit\SampleOutputFiles | as | out |
alias folder | document\fitSharp\Fit\SampleInputFiles | as | in |
The decoration occurs before the FIT tests are executed.
with | new | folder runner story |
run | -c,document\fitSharp\Fit\SampleInputFiles\SampleConfig.$OS$.xml |
with | file system |
ensure | file | test\output\SampleSubDecorated\SampleSimpleTest.html | same as | out\SampleSimpleDecorated.html |
Only files which contain HTML tables are decorated.
ensure | file | test\output\SampleSubDecorated\SampleNoTest.html | same as | in\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.
ensure | file | test\output\SampleSubDecorated\SampleSub\SampleSimpleTest.html | same as | out\SampleNestedDecorated.html |