<<

NAME

rm_broken_tests.pl -- remove broken test methods from a set of test classes.

SYNOPSIS

    rm_broken_tests.pl log_file src_dir [except]

DESCRIPTION

Parses the file log_file and fixes failing test methods by replacing each broken test method with a dummy test method in the source file of the corresponding test class. The source file of the test class is backed up prior to the first modification. If except is provided, then this test is mainted even if it appears in the log file.

The log file may contain arbitrary lines -- the script only considers lines that match the pattern: /--- ([^:]*)(::(.*))?/.

Example entries in the log file

Failing test class: --- package.Class
Failing test method: --- package.Class::method

All lines matching the pattern are sorted, such that a failing test class in the list will appear before any of its failing methods.

<<