3 #include <moulette/testable.hh>
4 #include "console-listener.hh"
8 ConsoleListener::ConsoleListener()
14 ConsoleListener::starting(const Testable
* test
)
16 if (test
->isTestSuite())
17 std::cout
<< "Starting " << test
->name() << " test suite:" << std::endl
;
19 std::cout
<< "Starting " << test
->name() << "...";
23 ConsoleListener::finished(const Testable
* test
)
25 const TestResult
& result
= test
->result();
26 if (!test
->isTestSuite())
27 std::cout
<< (result
.succeed
? "[OK]" : "[KO]") << std::endl
;