MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / TestComplete

Method TestComplete

Source/Debugger.cpp:127–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void cDebugger::TestComplete(const std::string& pName, const std::string& pGroup, const std::string& pMessage, const size_t pTime, eTestState pTestState) {
128 ConsoleOpen();
129 if (g_Fodder->mParams->mAppVeyor) {
130 std::string Command = "appveyor UpdateTest";
131 Command += " -Name \"" + pName + "\"";
132 Command += " -Framework NUnit -FileName \"" + pGroup +"\"";
133 if (pTestState == eTest_Failed)
134 Command += " -ErrorMessage \"" + pMessage + "\"";
135
136 Command += " -Duration " + std::to_string(pTime);
137 Command += " -Outcome ";
138
139 switch (pTestState) {
140 case eTest_Passed:
141 Command += "Passed";
142 break;
143 case eTest_Failed:
144 Command += "Failed";
145 break;
146 case eTest_Skipped:
147 Command += "Skipped";
148 break;
149 case eTest_Running:
150 Command += "Running";
151 break;
152 }
153
154 system(Command.c_str());
155 }
156 else {
157 if(pTestState == eTest_Passed)
158 std::cout << "[Test] " << pName << ": Passed - " << pMessage << "\n";
159 else
160 std::cout << "[Test] " << pName << ": Failed - " << pMessage << "\n";
161 }
162}

Callers 2

RunTestsMethod · 0.80
StartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected