diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-05-19 10:29:11 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-05-19 10:29:11 +0000 |
commit | fed3ef0b01704ee7fd9f41e8cbb706da38c004fe (patch) | |
tree | 3a83cb3a8a0c46dfcefcfb6ed5b72c6865b717e0 /src/cppunit/TextTestResult.cpp | |
parent | 5d704cbbd7928e8a3baec2e18c8d7e0e6089dc6e (diff) | |
download | cppunit-fed3ef0b01704ee7fd9f41e8cbb706da38c004fe.tar.gz |
* Merged Steve M. Robbins patch to replace assertImplementation with assert in hierarchy example.
* Added a TextTestRunner to runner tests. It is based on Michael Feather's version, but have been rewriten.
* Removed traces that printed the test name in TextTestResult while running.
* Added the test name to error and failure report in TextTestResult.
* Updated hierarchy example to use TextTestRunner.
Diffstat (limited to 'src/cppunit/TextTestResult.cpp')
-rw-r--r-- | src/cppunit/TextTestResult.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cppunit/TextTestResult.cpp b/src/cppunit/TextTestResult.cpp index 9d5f017..a8efbb3 100644 --- a/src/cppunit/TextTestResult.cpp +++ b/src/cppunit/TextTestResult.cpp @@ -31,10 +31,8 @@ TextTestResult::addFailure (Test *test, Exception *e) void TextTestResult::startTest (Test *test) { - - std::cerr << "Running " << test->getName() << " "; TestResult::startTest (test); - std::cerr << "." << std::endl; + std::cerr << "."; } @@ -57,6 +55,7 @@ TextTestResult::printErrors (std::ostream& stream) stream << i << ") " + << "test: " << failure->failedTest()->getName() << " " << "line: " << (e ? estring (e->lineNumber ()) : "") << " " << (e ? e->fileName () : "") << " " << "\"" << failure->thrownException ()->what () << "\"" @@ -84,6 +83,7 @@ TextTestResult::printFailures (std::ostream& stream) stream << i << ") " + << "test: " << failure->failedTest()->getName() << " " << "line: " << (e ? estring (e->lineNumber ()) : "") << " " << (e ? e->fileName () : "") << " " << "\"" << failure->thrownException ()->what () << "\"" |