void SDKUnitTestListener::OnTestEnd(const TestInfo& test_info) {
	if (test_info.result()->Passed()) {
		PushResult( "[       OK ] " );
	} else {
		PushResult( "[  FAILED  ] " );
	}

	PrintTestName(test_info.test_case_name(), test_info.name() );

	if (GTEST_FLAG(print_time)) {
		PushResult( UTIL_VarArgs(" (%s ms)\n", internal::StreamableToString(
			test_info.result()->elapsed_time()).c_str()) );
	} else {
		PushResult( "\n" );
	}
}
// Called after a test ends
void AlternatePrinter::OnTestEnd(const TestInfo& test_info) {
	fprintf(stdout, "*** TEST %s.%s ending.\n", test_info.test_case_name(), test_info.name());
	fflush(stdout);
}
void SDKUnitTestListener::OnTestStart(const TestInfo& test_info) {
	PushResult( "[ RUN      ] " );
	PrintTestName(test_info.test_case_name(), test_info.name());
	PushResult( "\n" );
}
Exemplo n.º 4
0
// Called before the test starts.
// Save information for the failure message.
// The test start information is actually printed by
// OnTestPartResult() and prints the failures only.
void TersePrinter::OnTestStart(const TestInfo& test_info)
{
	test_header_printed_ = false;
	test_case_name_ = test_info.test_case_name();
	test_info_name_ = test_info.name();
}
Exemplo n.º 5
0
	void OnTestStart(const TestInfo& test_info)
	{
		m_szLastTest = gcString("{0}/{1}", test_info.test_case_name(), test_info.name());
		onTestStartEvent(m_szLastTest);
	}
void TestSuite::OnTestStart(const TestInfo& test_info) {
    this->currentTestInfo = new UnitTestInfo();
    this->currentTestInfo->test_case_name = test_info.test_case_name();
    this->currentTestInfo->test_name = test_info.name();
}