webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
JsonTest::Runner Class Reference

#include <jsontest.h>

Public Member Functions

 Runner ()
 
Runneradd (TestCaseFactory factory)
 Adds a test to the suite. More...
 
int runCommandLine (int argc, const char *argv[]) const
 
bool runAllTest (bool printSummary) const
 Runs all the test cases. More...
 
unsigned int testCount () const
 Returns the number of test case in the suite. More...
 
std::string testNameAt (unsigned int index) const
 Returns the name of the test case at the specified index. More...
 
void runTestAt (unsigned int index, TestResult &result) const
 Runs the test case at the specified index using the specified TestResult. More...
 

Static Public Member Functions

static void printUsage (const char *appName)
 

Constructor & Destructor Documentation

◆ Runner()

JsonTest::Runner::Runner ( )

Member Function Documentation

◆ add()

Runner & JsonTest::Runner::add ( TestCaseFactory  factory)

Adds a test to the suite.

◆ printUsage()

void JsonTest::Runner::printUsage ( const char *  appName)
static

◆ runAllTest()

bool JsonTest::Runner::runAllTest ( bool  printSummary) const

Runs all the test cases.

◆ runCommandLine()

int JsonTest::Runner::runCommandLine ( int  argc,
const char *  argv[] 
) const

Runs test as specified on the command-line If no command-line arguments are provided, run all tests. If –list-tests is provided, then print the list of all test cases If –test <testname> is provided, then run test testname.

◆ runTestAt()

void JsonTest::Runner::runTestAt ( unsigned int  index,
TestResult result 
) const

Runs the test case at the specified index using the specified TestResult.

◆ testCount()

unsigned int JsonTest::Runner::testCount ( ) const

Returns the number of test case in the suite.

◆ testNameAt()

std::string JsonTest::Runner::testNameAt ( unsigned int  index) const

Returns the name of the test case at the specified index.


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