File Runner


A FileRunner is invoked with the command line:

    java fit.FileRunner input-file output-file

This reads the input-file, runs the tests it finds in HtmlTables, and writes an annotated copy to output-file. The program terminates writing counts to stderr:

    29 right, 8 wrong, 0 ignored, 2 exceptions

and then exits with status equal to (wrong+exceptions) which will be 0 if all goes well.

See also WikiRunner.


Runners exist to invoke methods in Parse and Fixture. These are the essential statements from the FileRunner main program:

    Parse tables = new Parse(input);
    fixture.doTables(tables);
    tables.print(output);

This is the classic read-eval-print, where all the testing happens in eval.

See the source.

 

Last edited September 11, 2002
Return to WelcomeVisitors