1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/embUnit/ColorOutputter.h
Janos Kutscherauer 5d7ba5b35f Added a colored outputter to embUnit.
The outputter is called ColorTextOutputter and can be enabled by defining OUTPUT=COLORTEXT.
The colored outputter behaves just like the TextOutputter, but displays successful tests in GREEN and failed tests in RED. The summary message is also in GREEN/RED, but is slightly different from the TextOutputter.

Also:
* Added fancy simple none-verbose color-outputter for EmbUnit. The outputter outputs a simple statistics line in GREEN or RED, according to the test success or failure. (Also, the ColorTextOutputter was adjusted to use the statistics output of this new ColorOutputter.) The new outputter can be activated with OUTPUT=COLOR.
* Added a single character "." output for the simple color outputter and replaced the color codes by macros.
2015-08-17 15:04:27 +02:00

46 lines
944 B
C

/*
* Copyright (C) 2015 Janos Kutscherauer <noshky@gmail.com>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @{
*
* @file
*
* @author Janos Kutscherauer <noshky@gmail.com>
*/
#ifndef __COLOROUTPUTTER_H__
#define __COLOROUTPUTTER_H__
#include "Outputter.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief embUnit coloured output formatter
*
* @return pointer to the OutputterImplement struct for this outputter
*/
OutputterRef ColorOutputter_outputter(void);
/**
* @brief coloured output formatter for test statistics
*
* @param[in] self pointer to the used OutputterImplement
* @param[in] result the test results to print
*/
void ColorOutputter_printStatistics(OutputterRef self, TestResultRef result);
#ifdef __cplusplus
}
#endif
#endif/*__COLOROUTPUTTER_H__*/
/** @} */