FreeNOS
|
Represents a test instance. More...
#include <TestInstance.h>
Public Member Functions | |
TestInstance (const char *name) | |
Class constructor. More... | |
virtual | ~TestInstance () |
Destructor. More... | |
const String & | getName () const |
Retrieve test instance name. More... | |
virtual TestResult | run ()=0 |
Run the test instance. More... | |
Protected Attributes | |
String | m_name |
Name of the test instance. More... | |
Represents a test instance.
Definition at line 35 of file TestInstance.h.
TestInstance::TestInstance | ( | const char * | name | ) |
Class constructor.
name | Name of the test |
Definition at line 21 of file TestInstance.cpp.
References TestSuite::addTest(), and StrictSingleton< TestSuite >::instance().
|
virtual |
Destructor.
Definition at line 27 of file TestInstance.cpp.
const String & TestInstance::getName | ( | ) | const |
Retrieve test instance name.
Definition at line 31 of file TestInstance.cpp.
References m_name.
Referenced by TAPReporter::reportAfter().
|
pure virtual |
Run the test instance.
Implemented in ExternalTest, and LocalTest.
Referenced by TestRunner::run().
|
protected |
Name of the test instance.
Definition at line 68 of file TestInstance.h.
Referenced by getName(), StdoutReporter::reportAfter(), XMLReporter::reportAfter(), StdoutReporter::reportBefore(), XMLReporter::reportBefore(), and ExternalTest::run().