00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _SK_CPPUNIT_SINGLELINEOUTPUTTER_
00009 #define _SK_CPPUNIT_SINGLELINEOUTPUTTER_
00010
00011 #include <iostream>
00012 #include <cppunit/CompilerOutputter.h>
00013 #include <cppunit/ui/text/TestRunner.h>
00014
00015 namespace sk {
00016 namespace cppunit {
00017 class SingleLineOutputter
00018 : public CppUnit::CompilerOutputter
00019 {
00020 public:
00021 SingleLineOutputter(CppUnit::TextUi::TestRunner& runner);
00022
00023 private:
00024
00025 void printFailureType(CppUnit::TestFailure* failure);
00026 void printFailedTestName(CppUnit::TestFailure* failure);
00027 void printFailureMessage(CppUnit::TestFailure* failure);
00028
00029 const std::string stripNamespace(const std::string& name) const;
00030
00031 std::ostream& _stream;
00032 };
00033 }
00034 }
00035
00036 #endif