We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951e670 commit 3c96cc6Copy full SHA for 3c96cc6
test/main.cpp
@@ -6,5 +6,20 @@
6
* The full license is in the file LICENSE, distributed with this software.
7
****************************************************************************/
8
9
-#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
10
-#include "doctest/doctest.h"
+#define DOCTEST_CONFIG_IMPLEMENT
+#include "doctest/doctest.h"
11
+
12
+int main(int argc, char** argv) {
13
+ doctest::Context context;
14
15
+ // Set options to show more detailed test output
16
+ context.setOption("success", true);
17
+ context.setOption("report-failures", true);
18
+ context.setOption("force-colors", true);
19
20
+ context.applyCommandLine(argc, argv);
21
22
+ int res = context.run();
23
24
+ return res;
25
+}
0 commit comments