class BriefSessionLog : StreamingObserver

Test observer that creates only a brief progress report.

This test observer outputs only one character per test case. In case the test runs without generating any exception, a dot is printed. Otherwise a 'x' is printed instead. When a single test is skipped, a backslash is printed. When multiple test are skipped altogether, the number of tests follows the backslash.

See also observer output examples



Public Members:
    BriefSessionLog ( ostream& stream, bool enabled = true, bool permitCancel = true ) ;
    Creates a brief terminal log observer.
    The output stream must be specified. The brief log is enabled by default opposite to the verbose log).

    A brief session log has the following default options:
    The flag "-v" (verbose) disables the brief session log. This option identifier is not consumed (that is done by the verbose session log).


    virtual ~BriefSessionLog () ;
    The destructor.
    See also LoggingTestObserver.

    virtual void beginSession (TestSession& session) ;
    A new test session is started.
    Nothing is done.

    virtual void endSession (TestSession& session, bool cancelled) ;
    A test session has come to an end.
    Nothing is done.

    virtual void beginTest (Test& test, TestSession& session) ;
    Another test is executed.
    Nothing is done.

    virtual void endTest (Test& test, TestSession& session, bool success) ;
    A test was run.
    If success, a dot ('.') is printed, otherwise an 'x'.

    virtual void testSkipped (Test& test, TestSession& session) ;
    A test is skipped.
    A backslash is printed when a test case was skipped. When a test suite was skipped, the number of (recursively) contained test is printed after the backslash.

    virtual void logException (TestExceptionRecord& mr, TestSession& session) ;
    A test exception has occurred.
    Exception are not explicitly logged by this observer.




The Scrunitizer C++ Unit Test Framework
by Bernd Linowski

[Scrunitizer]  [Overview]  [Cookbook]  [Download]  [Index]  [Linosphere]

Page generated: 1 Nov 2000
(C) by Bernd Linowski
scrunitizer@linosphere.de