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

Go to the source code of this file.

Description

Simplistic 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
random.hpp
main.cpp

Definition in file run.hpp.

#include "lib/error.hpp"
#include "lib/random.hpp"
#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

using Arg = std::vector< string > &
 

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:508

Definition at line 116 of file run.hpp.