ZFFramework
 
Loading...
Searching...
No Matches
ZFTestCaseUtil.h File Reference

test case define More...

#include "ZFTestCase.h"

Go to the source code of this file.

Namespaces

namespace  ZFGlobalEvent
 

 

Functions

zfautoT< ZFTestCaseZFTestCaseRun (const ZFClass *cls)
 run a single test case
 
zfautoT< ZFTestCaseZFTestCaseRun (const zfstring &classNameFull)
 see ZFTestCaseRun
 
zfidentity ZFGlobalEvent::E_TestCaseRunAllOnStart (void)
 see ZFObject::observerNotify
 
zfidentity ZFGlobalEvent::E_TestCaseRunAllOnStop (void)
 see ZFObject::observerNotify
 
void ZFTestCaseRunAllStart (const ZFCoreArray< const ZFClass * > *toStart=(zft_zfnull))
 use reflect to start all test cases
 
void ZFTestCaseRunAllStop ()
 stop ZFTestCaseRunAllStart
 
void ZFTestCaseGetAllT (ZFCoreArray< const ZFClass * > &ret)
 see ZFTestCaseGetAll
 
ZFCoreArray< const ZFClass * > ZFTestCaseGetAll ()
 get all test case currently registered
 

Detailed Description

test case define

Function Documentation

◆ ZFTestCaseRun()

zfautoT< ZFTestCase > ZFTestCaseRun ( const ZFClass * cls)
extern

run a single test case

we would create an instance of the test case and running it
return the test case if success and not stopped immediately

◆ ZFTestCaseRunAllStart()

void ZFTestCaseRunAllStart ( const ZFCoreArray< const ZFClass * > * toStart = (zft_zfnull))
extern

use reflect to start all test cases

first param can be assigned to specify a callback to check whether a test case can be started