TestLogger
IntroductionBase class for loggers. Member Functions
chompRemoves the trailing newline from the text, if present. on chomp( s) ParametersReturn ValueThe string s with the trailing newline character removed, if any. initializeInitializes this logger. on initialize() DiscussionThis handler may be overriden by subclasses to perform any needed initialization step. This handler is called automatically by autorun(). printColoredLinePrints a string with the given color and starts a new line. on printColoredLine( aString, aColor) ParametersprintColoredStringPrints the given text with the given style. on printColoredString( aString, aColor) ParametersDiscussionThis handler must be implemented by subclasses. printCountsPrints the counts of passed and skipped tests, failures, and errors. on printCounts() printDefectsPrints detailed information about failures and errors. on printDefects( title, defects) ParametersprintErrorPrints the error string for the current test. on printError() printFailPrints the failure string for the current test. on printFail() printLinePrints a string using the default color and starts a new line. on printLine( aString) ParametersprintResultPrints "OK" or "FAILED" at the end of the test results. on printResult() printSkipPrints the skip string for the current test. on printSkip() printStringPrints a string using the default color. on printString( aString) ParametersprintSuccessPrints the success string for the current test. on printSuccess() printSummaryPrints a summary of the test results. on printSummary() printTestCasePrints the name of the current test. on printTestCase( aTestCase) ParametersprintTitlePrints the title of the test results. on printTitle() setNotifierOverrides Observer's setNotifier(). on setNotifier( aTestResult) updateLogs the given event. on update( anEvent) Parameters
|