Lumiera  0.pre.03
»edit your freedom«
run.hpp File Reference

Go to the source code of this file.

Description

Simple test class runner.

Allows for writing unit tests as subclass of test::Test . They may be installed for automatic invocation through test::Suite by defining a Launcher instance, which can be done conveniently by the macro LAUNCHER

See also
HelloWorld_test
test::Suite
testrunner.cpp
main.cpp

Definition in file run.hpp.

#include "steam/common.hpp"
#include "include/logging.h"
#include "lib/test/suite.hpp"
#include "lib/util.hpp"
#include <memory>
#include <string>

Classes

class  Launch< TEST >
 Helper class for running a collection of tests. More...
 
class  Launcher
 interface: generic testcase creating functor. More...
 
class  Test
 Abstract Base Class for all testcases. More...
 

Typedefs

typedef std::vector< string > & Arg
 

Macros

#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
 

Macro Definition Documentation

◆ LAUNCHER

#define LAUNCHER (   _TEST_CLASS_,
  _GROUPS_ 
)
Value:
\
Launch<_TEST_CLASS_> run_##_TEST_CLASS_##_(STRINGIFY(_TEST_CLASS_), _GROUPS_);
#define STRINGIFY(TOKEN)
this macro wraps its parameter into a cstring literal
Definition: util.hpp:486

Definition at line 115 of file run.hpp.