SmartTester  2.0.0
Smart Tester is unit testing and regression testing framework used for testing SmartCGMS system.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tester::TestRunner Class Referenceabstract

#include <GenericUnitTester.h>

Inheritance diagram for tester::TestRunner:
Inheritance graph
[legend]

Public Member Functions

void executeTest (const std::wstring &testName, const std::function< HRESULT(void)> &test)
 

Protected Member Functions

virtual HRESULT shutDownTest ()=0
 Every derived class has to override the test shutdown mechanism.
 

Protected Attributes

std::mutex m_testMutex
 
std::condition_variable m_testCv
 
HRESULT m_lastTestResult = S_OK
 

Detailed Description

Contains methods, for running entity tests.

Member Function Documentation

◆ executeTest()

void tester::TestRunner::executeTest ( const std::wstring &  testName,
const std::function< HRESULT(void)> &  test 
)

Invokes test method passed as a parameter. Invoked method has to take in zero parameters and return HRESULT as a return value.

Parameters
testNamename of the test which will be displayed in logs
testmethod to be invoked by this method

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