Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
run.hpp File Reference

Simplistic test class runner. More...

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>

Namespaces

namespace  test
 Test runner and basic definitions for tests.
 

Macros

#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
 

Typedefs

using Arg = std::vector< string > &
 

Classes

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

Macro Definition Documentation

◆ LAUNCHER

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

Definition at line 116 of file run.hpp.