A lambda-based C++ unit-testing framework.
Revision | 75685f757b9e4f2cb06e01b2cff31442a269d0e4 (tree) |
---|---|
Time | 2020-01-23 12:35:21 |
Author | Kaz Nishimura <kazssym@linu...> |
Commiter | Kaz Nishimura |
Add new member functions to 'TestDriver'
@@ -20,6 +20,7 @@ | ||
20 | 20 | #define _CPPUNITX_DRIVER_H 1 |
21 | 21 | |
22 | 22 | #include <bits/cppunitx.h> |
23 | +#include <cppunitx/framework> | |
23 | 24 | #include <memory> |
24 | 25 | |
25 | 26 | namespace cppunitx |
@@ -43,6 +44,20 @@ | ||
43 | 44 | |
44 | 45 | public: |
45 | 46 | virtual void run(const char *suiteName); |
47 | + | |
48 | + // The terms install/uninstall might not fit well for these functions. | |
49 | + | |
50 | + virtual void installTest(const Test *test); | |
51 | + | |
52 | + virtual void uninstallTest(const Test *test); | |
53 | + | |
54 | + virtual void installBefore(const Before *before); | |
55 | + | |
56 | + virtual void uninstallBefore(const Before *before); | |
57 | + | |
58 | + virtual void installAfter(const After *after); | |
59 | + | |
60 | + virtual void uninstallAfter(const After *after); | |
46 | 61 | }; |
47 | 62 | } |
48 | 63 |
@@ -87,3 +87,27 @@ | ||
87 | 87 | auto registry = (*getRegistry)(); |
88 | 88 | registry->runTests(); |
89 | 89 | } |
90 | + | |
91 | +void TestDriver::installTest(const Test *const) | |
92 | +{ | |
93 | +} | |
94 | + | |
95 | +void TestDriver::uninstallTest(const Test *const) | |
96 | +{ | |
97 | +} | |
98 | + | |
99 | +void TestDriver::installBefore(const Before *const) | |
100 | +{ | |
101 | +} | |
102 | + | |
103 | +void TestDriver::uninstallBefore(const Before *const) | |
104 | +{ | |
105 | +} | |
106 | + | |
107 | +void TestDriver::installAfter(const After *const) | |
108 | +{ | |
109 | +} | |
110 | + | |
111 | +void TestDriver::uninstallAfter(const After *const) | |
112 | +{ | |
113 | +} |