MCPcopy Create free account
hub / github.com/axmolengine/axmol / run

Method run

tests/unit-tests/Source/AppDelegate.cpp:97–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96
97int 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}

Callers 15

axmol_mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
axmol_mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 6

getInstanceFunction · 0.85
getSearchPathsMethod · 0.80
applyCommandLineMethod · 0.80
setOptionMethod · 0.80
getWritablePathMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected