From 7c416af673fa755ed60195cce5a764b5828c007e Mon Sep 17 00:00:00 2001 From: Snaipe Date: Tue, 8 Dec 2015 00:34:02 +0100 Subject: [PATCH] Added doxygen for options.h --- include/criterion/options.h | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/include/criterion/options.h b/include/criterion/options.h index 220e32c..fbe9014 100644 --- a/include/criterion/options.h +++ b/include/criterion/options.h @@ -28,20 +28,90 @@ # include "logging.h" struct criterion_options { + + /** + * The current logging threshold. + * + * default: 1 + */ enum criterion_logging_level logging_threshold; + + /** + * The logger that will be used during the execution of the runner. + * + * default: normal logger + */ struct criterion_logger *logger; + + /** + * Don't exit the child immediately after finishing to run the test + * function, and perform a full cleanup. + * + * Useful when tracking memory leaks, and is immediately implied when + * running the process under valgrind. + * + * default: false + */ bool no_early_exit; + + /** + * Always return a success from criterion_run_all_tests. + * + * default: false + */ bool always_succeed; + + /** + * Disable unicode and ansi coloring from the logging system. + * + * default: false + */ bool use_ascii; + + /** + * Exit immediately after the first test failure. + * + * default: false + */ bool fail_fast; + + /** + * Disable all tests not matching this extglob pattern. + * if NULL, don't filter tests. + * + * default: NULL + */ const char *pattern; + + /** + * Only print the base file name compound of the source file containing + * the tests during reporting. + * + * default: false + */ bool short_filename; + + /** + * The maximum number of parallel jobs that the test runner will spawn. + * 0 means that this number shall be the number of cores on your system. + * + * default: 0 + */ size_t jobs; + + /** + * Measure and report times. + * + * default: true + */ bool measure_time; }; CR_BEGIN_C_API +/** + * The runtime options for the test runner. + */ extern struct criterion_options criterion_options; CR_END_C_API