Fit for Developing Software: Framework for Integrated Tests

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 to an HTML file. FitNesse returns this HTML as a wiki page.

To create a custom runner, we need to write code to carry out each of these steps. The FitLibrary class CustomRunner can be used to drastically simplify this task, allowing you to avoid knowing about most of the internal details of Fit.

    Категории