wex v24.10.0
Public Member Functions | Static Public Member Functions | List of all members
wex::test::doctester Class Reference

Offers the doctest based class info. More...

#include <wex/test/doctest.h>

Inheritance diagram for wex::test::doctester:
Inheritance graph
[legend]

Public Member Functions

bool on_init (wex::app *app)
 Performs doctest init.
 
void on_run (wex::app *app)
 Performs doctest activation.
 
bool use_context (wex::app *app, int argc, char *argv[])
 Use context when running.
 

Static Public Member Functions

static path get_path (const std::string &file=std::string(), path::log_t type=path::log_t())
 Returns the test path.
 

Detailed Description

Offers the doctest based class info.

Your test application should be derived from this class.

Member Function Documentation

◆ use_context()

bool wex::test::doctester::use_context ( wex::app * app,
int argc,
char * argv[] )

Use context when running.

You should first call this method to construct the context.