mirror of
https://github.com/oatpp/oatpp.git
synced 2025-04-18 19:00:23 +08:00
Update src/oatpp-test/UnitTest.hpp
Co-authored-by: Benedikt-Alexander Mokroß <github@bamkrs.de>
This commit is contained in:
parent
f4a178f9f7
commit
6e4e30bfa2
@ -90,15 +90,17 @@ public:
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Convenience macro to run test. <br>
|
||||
* Usage Example:<br>
|
||||
* `OATPP_RUN_TEST(oatpp::test::web::FullTest);`
|
||||
*/
|
||||
#define OATPP_RUN_TEST_0(TEST) \
|
||||
oatpp::test::UnitTest::runTest<TEST>(1)
|
||||
#define OATPP_RUN_TEST_1(TEST, N) \
|
||||
oatpp::test::UnitTest::runTest<TEST>(N)
|
||||
/**
|
||||
* Convenience macro to run test. <br>
|
||||
* Usage Example:<br>
|
||||
* `OATPP_RUN_TEST(oatpp::test::web::FullTest);`
|
||||
* Running the test 10 times:
|
||||
* `OATPP_RUN_TEST(oatpp::test::web::FullTest, 10);`
|
||||
*/
|
||||
#define OATPP_RUN_TEST(...) \
|
||||
OATPP_MACRO_EXPAND(OATPP_MACRO_MACRO_BINARY_SELECTOR(OATPP_RUN_TEST_, (__VA_ARGS__)) (__VA_ARGS__))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user