1 #ifndef __TEST_RUNNER_H__
2 #define __TEST_RUNNER_H__
4 #include <TTestSuite.h>
8 * Declaration of the s_TestRunner structure, which represents
9 * a test runner used to run suites of tests.
11 typedef struct s_TestRunner {
12 Buffer_t buffer; /* a single buffer */
13 TestSuite_t testSuite; /* the test suite to run */
15 } s_TestRunner_t, *TestRunner_t;
19 * s_TestRunner structure connected functions.
23 * Create an new s_TestRunner struct and
24 * returns a pointer to self.
26 TestRunner_t TestRunner_new(void);
29 * Initialize the s_TestRunner struct.
31 errno_t TestRunner_initialize(TestRunner_t runner, int argc, char *argv[]);
34 * Launch the test runner.
36 void TestRunner_run(TestRunner_t runner);
39 * Free the s_TestRunner.
41 void TestRunner_free(TestRunner_t runner);
49 #endif /* #ifndef __TestRunner_H__ */