diff --git a/test/main.cpp b/test/main.cpp index 1309050a..971057aa 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -6,5 +6,20 @@ * The full license is in the file LICENSE, distributed with this software. ****************************************************************************/ -#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN -#include "doctest/doctest.h" \ No newline at end of file +#define DOCTEST_CONFIG_IMPLEMENT +#include "doctest/doctest.h" + +int main(int argc, char** argv) { + doctest::Context context; + + // Set options to show more detailed test output + context.setOption("success", true); + context.setOption("report-failures", true); + context.setOption("force-colors", true); + + context.applyCommandLine(argc, argv); + + int res = context.run(); + + return res; +}