FQC - FiFo Quickcheck helper
A set of helpers for running EQC. It uses the same logic as quickcheck-ci.org to determine what tests to run (functions ending with _prop) and wraps it in a eunit test suite.
Some functions are provided for additional generators. Also it offers colored output for tests instead of the default printing of results.
-include_lib("fqc/include/fqc.hrl"). in your file.
In addition to that some variables can be
EQC_SETUPWhen defined the module must provide
cleanup/1which will be used as part of the eunit test suite.
EQC_NUM_TESTSThe number of tests to run, default is 500.
EQC_LONG_TESTSRuns 5000 tests.
EQC_SHORT_TESTRuns 100 tests.
EQC_EUNIT_TIMEUTThe timeout for the unit tests, defaults to
?EQC_NUM_TESTS div 5.
EQC_CIDisables colored output to run with EQC_CI.
GROWLIf defined a growl notification will be send for failed test cases using
growlnotify -n eqc -m "A test failed"
The eqc_dot module provides a function to generate
.dot files for graphviz from symbolic statemachine commands.
The main function is
eqc_gv:to_dot/2 where the first argument is the list symbilic commands and the second the failed command:
file:write_file("/Users/heinz/test.dot", eqc_gv:to_dot(eqc_gv:example_data(), 6)).
- The Red command is the failed command.
- Green commands were successfully executed and are in the dependency path of the failed command.
- Blue commands were executed but their results were not used by the failed command.