2 * Boost Software License - Version 1.0 - August 17th, 2003
4 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6 * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
7 * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
8 * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
9 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
10 * DEALINGS IN THE SOFTWARE.
14 #include <boost/test/unit_test_log_formatter.hpp>
19 class colour_log_formatter : public boost::unit_test::unit_test_log_formatter {
21 // Formatter interface
22 colour_log_formatter() : m_isTestCaseFailed(false) {}
25 boost::unit_test::counter_t test_cases_amount);
26 void log_finish(std::ostream &);
27 void log_build_info(std::ostream &);
31 boost::unit_test::test_unit const &tu);
32 void test_unit_finish(
34 boost::unit_test::test_unit const &tu,
35 unsigned long elapsed);
36 void test_unit_skipped(
38 boost::unit_test::test_unit const &tu);
42 boost::unit_test::log_checkpoint_data const &,
43 boost::execution_exception const &ex);
47 boost::unit_test::log_entry_data const &,
51 boost::unit_test::const_string value);
54 boost::unit_test::lazy_ostream const &value);
55 void log_entry_finish(std::ostream &);
58 bool m_isTestCaseFailed;