O'Reilly logo

Fit for Developing Software: Framework for Integrated Tests by Ward Cunningham, Rick Mugridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required