testexecfw/symbianunittestfw/sutfw/sutfwcore/sutfwoutput/src/symbianunittestoutputastext.cpp
equal
deleted
inserted
replaced
20 #include "symbianunittestfileoutputwriter.h" |
20 #include "symbianunittestfileoutputwriter.h" |
21 #include "symbianunittestoutputastext.h" |
21 #include "symbianunittestoutputastext.h" |
22 |
22 |
23 _LIT8( KTxtExecutedTests, "\r\n %d unit tests executed " ); |
23 _LIT8( KTxtExecutedTests, "\r\n %d unit tests executed " ); |
24 _LIT8( KTxtPassedTests, " Passed tests: %d\r\n\r\n" ); |
24 _LIT8( KTxtPassedTests, " Passed tests: %d\r\n\r\n" ); |
|
25 _LIT8( KTxtPassedTest, " Test: " ); |
25 _LIT8( KTxtFailedTests, " Failed tests: %d\r\n\r\n" ); |
26 _LIT8( KTxtFailedTests, " Failed tests: %d\r\n\r\n" ); |
26 _LIT8( KTxtFailureTest, " Test: " ); |
27 _LIT8( KTxtFailureTest, " Test: " ); |
27 _LIT8( KTxtFailureFile, " File: " ); |
28 _LIT8( KTxtFailureFile, " File: " ); |
28 _LIT8( KTxtFailureLine, " Line: %d\r\n" ); |
29 _LIT8( KTxtFailureLine, " Line: %d\r\n" ); |
29 _LIT8( KTxtFailureReason, " Reason: " ); |
30 _LIT8( KTxtFailureReason, " Reason: " ); |
88 // |
89 // |
89 void CSymbianUnitTestOutputAsText::PrintPassedTestsL( |
90 void CSymbianUnitTestOutputAsText::PrintPassedTestsL( |
90 CSymbianUnitTestResult& aResult ) |
91 CSymbianUnitTestResult& aResult ) |
91 { |
92 { |
92 iOutputWriter->WriteL( KTxtPassedTests, aResult.PassedTestCount() ); |
93 iOutputWriter->WriteL( KTxtPassedTests, aResult.PassedTestCount() ); |
|
94 const CDesCArray& testCaseNames = aResult.TestCaseNames(); |
|
95 for ( TInt i=0; i < testCaseNames.Count(); i++ ) |
|
96 { |
|
97 iOutputWriter->WriteL( KTxtPassedTest); |
|
98 iOutputWriter->WriteL( testCaseNames[i]); |
|
99 iOutputWriter->WriteL( KLineEnd ); |
|
100 } |
93 } |
101 } |
94 |
102 |
95 // ----------------------------------------------------------------------------- |
103 // ----------------------------------------------------------------------------- |
96 // From CSymbianUnitTestOutputFormatter |
104 // From CSymbianUnitTestOutputFormatter |
97 // ----------------------------------------------------------------------------- |
105 // ----------------------------------------------------------------------------- |