TCGenerator is a tool to compute test cases covering different coverage properties. It takes output from Modelinho (https://modelinho.ist.tugraz.at/v1/) in form of constraints stored in a .smt2 file as input and prints the computed test cases. If desired, it also writes them to a .csv file. Currently the tool provides implementations for branch coverage and path coverage.
The tool expects 3 command line parameters:
- PATH: path of
.smt2input file - COVERAGE PROPERTY: desired coverage property, e.g.
-bcfor branch coverage,-pcfor path coverage - EXPORT (optional): the
-exportflag specifies whether the test cases should also be exported to a.csvfile in addition to printing them as per default. This flag is optional.
The tool was implemented in Java with OpenJDK 17 and requires Z3 (https://github.com/Z3Prover/z3) as the only external library.