| 95 | |
| 96 | |
| 97 | int AppDelegate::run(int argc, char** argv) { |
| 98 | AXLOGI("Running unit tests...\n"); |
| 99 | fflush(stdout); |
| 100 | AXLOGI("Default resource path: {}\n", FileUtils::getInstance()->getDefaultResourceRootPath()); |
| 101 | AXLOGI("Writable path: {}\n", FileUtils::getInstance()->getWritablePath()); |
| 102 | { |
| 103 | for (auto& path : FileUtils::getInstance()->getSearchPaths()) |
| 104 | AXLOGI("Search path: {}\n", path); |
| 105 | } |
| 106 | fflush(stdout); |
| 107 | |
| 108 | ax::Director::getInstance()->init(); |
| 109 | |
| 110 | doctest::Context context; |
| 111 | |
| 112 | //context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in their name |
| 113 | //context.setOption("abort-after", 5); // stop test execution after 5 failed assertions |
| 114 | |
| 115 | //context.setOption("order-by", "name"); // sort the test cases by their name |
| 116 | |
| 117 | context.applyCommandLine(argc, argv); |
| 118 | |
| 119 | // overrides |
| 120 | context.setOption("no-breaks", true); // don't break in the debugger when assertions fail |
| 121 | |
| 122 | int res = context.run(); // run |
| 123 | return res; |
| 124 | } |
no test coverage detected