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 1e2e018Copy full SHA for 1e2e018
test/main.cpp
@@ -6,5 +6,21 @@
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("no-skip", true);
19
+ context.setOption("force-colors", true);
20
21
+ context.applyCommandLine(argc, argv);
22
23
+ int res = context.run();
24
25
+ return res;
26
+}
0 commit comments