AssertFixer
This project aims at fixing assertion. The program under test is used as specification to fix the test suite.
See: Brett Daniel et al. for instance.
CLI
java -jar assert-fixer.jar (-c|--classpath) <classpath> (-t|--test-class) <testClass> (-m|--test-method) <testMethod> [(-s|--source-path) <sourcePath>] [(-p|--test-path) <testPath>] [--verbose] [(-o|--output) <output>] [--gen-try-catch] [-h|--help]
(-c|--classpath) <classpath>
[Mandatory] Use must specify a complete classpath to execute tests on
your project.
The classpath should be formatted according to the OS.
(-t|--test-class) <testClass>
[Mandatory] Use must specify a failing test class.
You must provide a full qualified name such as:
my.package.example.ClassTest
(-m|--test-method) <testMethod>
[Mandatory] Use must specify at least one failing test method.
Separate multiple values with ":" such as: test1:test2
[(-s|--source-path) <sourcePath>]
[Optional] Specify the path to the source folder.
Separate multiple values with ":" such as: path/one:path/two/
[(-p|--test-path) <testPath>]
Specify the path to the test source folder.
Separate multiple values with ":" such as: path/one:path/two/ (default:
src/test/java/)
[--verbose]
Enable verbose mode
[(-o|--output) <output>]
[Optional] Specify an output folder for result and temporary files.
(default: target/assert-fixer)
[--gen-try-catch]
Enable the generation of try/catch/fail block to repair test method
[-h|--help]
Display this help and exit