From 3c96cc6212852c2b6f5231648d49484ca2906de2 Mon Sep 17 00:00:00 2001 From: mcbarton Date: Mon, 16 Jun 2025 13:29:20 +0100 Subject: [PATCH] Improve doctest output --- test/main.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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; +}