Browse Source

doctest: Do not override command-line options

Those options were likely copy-pasted from documentation examples.
This change also allows to break in the debugger by default when
assertions fail, and this can be configured via command-line interface.
Andrii Doroshenko (Xrayez) 4 years ago
parent
commit
dc980e5f96
1 changed files with 0 additions and 4 deletions
  1. 0 4
      tests/test_main.cpp

+ 0 - 4
tests/test_main.cpp

@@ -112,10 +112,6 @@ int test_main(int argc, char *argv[]) {
 
 
 	test_context.applyCommandLine(test_args.size(), doctest_args);
 	test_context.applyCommandLine(test_args.size(), doctest_args);
 
 
-	test_context.setOption("order-by", "name");
-	test_context.setOption("abort-after", 5);
-	test_context.setOption("no-breaks", true);
-
 	for (int x = 0; x < test_args.size(); x++) {
 	for (int x = 0; x < test_args.size(); x++) {
 		delete[] doctest_args[x];
 		delete[] doctest_args[x];
 	}
 	}