Chapter 39. Custom Runners
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.
39.1 Runners
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 ...
Get Fit for Developing Software: Framework for Integrated Tests now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.