June 2005
Intermediate to advanced
384 pages
8h 4m
English
This chapter discusses how to develop custom runners. This topic is relevant if you already have lots of test data in other formats and don’t wish to convert it into HTML tables. A custom runner can process that data and feed it into Fit, producing standard Fit reports.
We show two examples that read tests from plaintext and spreadsheet files and process them with Fit.
As we saw in Chapter 37, a runner carries out three functions in turn.
1. It inputs data in some form and converts it into a Parse tree. For example, a FileRunner inputs HTML from a file.
2. It creates a new Fixture object and calls its doTables( ) method, passing the Parse tree.
3. It writes the report. A FileRunner writes this ...
Read now
Unlock full access