Skip to content

Test History Logging

Gavin Fielder edited this page May 7, 2019 · 6 revisions

On: -l ; Off: -L Default on.

By default, PFT will track the last time each test passes and fails, and print information about the most recent run of each test. Tests' history will also become 'outdated' if their age exceeds the TEST_OUTDATED_TIME value set in options-config.ini. This feature also allows selecting tests to run by whether they have recently passed or failed.

By default, the PFT Makefile removes the test history whenever unit_tests.c is strictly newer. This prevents the test history from becoming corrupted when you add your own tests (potentially changing the test numbers). By default the enable-test and disable-test scripts, as they modify unit_tests.c, will trigger such removal of history.csv. There is an option in options-config.ini to disable the history removal behavior, as well as an option for the enable-test and disable-test scripts to touch history.csv to prevent the removal trigger. Use these options at your own discretion.

See Also