Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Enabling verbose mode

offa edited this page Mar 19, 2016 · 3 revisions

Frameworks listed on this page do not run in verbose mode per default and must therefore enable it.

Files created using the file wizard have this configured already.

CppUTest

Enabled by -v switch; an optional -c enables the optional colored output.

#include <CppUTest/CommandLineTestRunner.h>
#include <vector>

int main(int argc, char** argv)
{
    std::vector<const char*> args(argv, argv + argc);
    args.push_back("-v"); // Enable verbose output
    args.push_back("-c"); // Enable colored output (optional)
    
    return RUN_ALL_TESTS(args.size(), &args[0]);
}

libunittest C++

Enabled by -v switch.

#include <libunittest/main.hpp>
#include <vector>

int main(int argc, char** argv)
{
    std::vector<const char*> args(argv, argv + argc);
    args.push_back("-v"); // Enable verbose output
    
    return unittest::process(args.size(), const_cast<char**>(&args[0]));
}

Clone this wiki locally