FreeNOS
Public Member Functions | Protected Attributes
TestRunner Class Reference

Reponsible for discovering and running tests. More...

#include <TestRunner.h>

Public Member Functions

 TestRunner (int argc, char **argv)
 Class constructor. More...
 
virtual ~TestRunner ()
 Destructor. More...
 
TestReportergetReporter ()
 Get test reporter. More...
 
int run (void)
 Run all discovered tests. More...
 

Protected Attributes

int m_argc
 Program argument count. More...
 
char ** m_argv
 Program argument values. More...
 
TestReporterm_reporter
 Reports test results. More...
 

Detailed Description

Reponsible for discovering and running tests.

Definition at line 36 of file TestRunner.h.

Constructor & Destructor Documentation

◆ TestRunner()

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

Class constructor.

Parameters
argcProgram argument count
argvProgram argument values

Definition at line 27 of file TestRunner.cpp.

References m_argc, m_argv, m_reporter, TestReporter::setStatistics(), and strcmp().

◆ ~TestRunner()

TestRunner::~TestRunner ( )
virtual

Destructor.

Definition at line 60 of file TestRunner.cpp.

References m_reporter.

Member Function Documentation

◆ getReporter()

TestReporter * TestRunner::getReporter ( )

Get test reporter.

Returns
TestReporter pointer

Definition at line 65 of file TestRunner.cpp.

References m_reporter.

◆ run()

int TestRunner::run ( void  )

Field Documentation

◆ m_argc

int TestRunner::m_argc
protected

Program argument count.

Definition at line 70 of file TestRunner.h.

Referenced by TestRunner().

◆ m_argv

char** TestRunner::m_argv
protected

Program argument values.

Definition at line 73 of file TestRunner.h.

Referenced by TestRunner().

◆ m_reporter

TestReporter* TestRunner::m_reporter
protected

Reports test results.

Definition at line 76 of file TestRunner.h.

Referenced by getReporter(), run(), TestRunner(), and ~TestRunner().


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