Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
#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;
}