sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::TestRunner Class Reference

#include <TestRunner.h>

Public Member Functions

 TestRunner (int &argc, char **&argv)
 
void addDatabaseConnection (const DatabaseConnectionString &connectionString) const
 
int runAllTests ()
 

Detailed Description

GTest run test wrapper

Constructor & Destructor Documentation

◆ TestRunner()

sptk::TestRunner::TestRunner ( int &  argc,
char **&  argv 
)

Constructor

Parameters
argcCommand line arguments number
argvCommand line arguments

Member Function Documentation

◆ addDatabaseConnection()

void sptk::TestRunner::addDatabaseConnection ( const DatabaseConnectionString connectionString) const

Define database connection for DB module that should be tested

Parameters
connectionString

◆ runAllTests()

int sptk::TestRunner::runAllTests ( )

Actually run tests

Returns
0 if tests were successful

The documentation for this class was generated from the following file:

Fri Oct 14 2022 09:58:46: SPTK 5.4.1