C++Spec 1.0.0
BDD testing for C++
All Classes Files Functions Variables Pages Concepts
cppspec.hpp File Reference

The core header file for Cppspec. More...

#include "argparse.hpp"
#include "class_description.hpp"
Include dependency graph for cppspec.hpp:

Go to the source code of this file.

Macros

#define auto   & self) -> void
 
#define _   [=](auto& self) mutable -> void
 
#define it   self.it
 
#define specify   it
 
#define context   self.context
 
#define expect   self.expect
 
#define explain   context
 
#define is_expected   self.is_expected
 
#define subject   self.subject
 
#define before_all   self.before_all
 
#define before_each   self.before_each
 
#define after_all   self.after_all
 
#define after_each   self.after_each
 
#define let(name, body)
 
#define CPPSPEC_MAIN(spec)
 
#define CPPSPEC_SPEC(spec_name)
 

Detailed Description

The core header file for Cppspec.

Macro Definition Documentation

◆ CPPSPEC_MAIN

#define CPPSPEC_MAIN ( spec)
Value:
int main(int argc, char** const argv) { \
return CppSpec::parse(argc, argv).add_spec(spec).exec().is_success() ? EXIT_SUCCESS : EXIT_FAILURE; \
}

◆ CPPSPEC_SPEC

#define CPPSPEC_SPEC ( spec_name)
Value:
int spec_name##_spec(int argc, char** const argv) { \
return CppSpec::parse(argc, argv).add_spec(spec_name).exec().is_success() ? EXIT_SUCCESS : EXIT_FAILURE; \
}

◆ let

#define let ( name,
body )
Value:
auto(name) = self.let(body);