TESTadd_(t) -- Add a RoadTest. More...
#include <RoadTest.h>
Public Slots | |
Test slots | |
! List of failed tests | |
void | cleanup () |
Executed after each test. | |
Public Member Functions | |
Constructors, etc. | |
RoadTest () | |
~RoadTest () | |
void | recordFailedTest () |
Static Public Member Functions | |
Class functions | |
static int | runTests (QStringList arguments) |
Static Protected Attributes | |
Class globals | |
static QList< RoadTest * > | s_testcases |
static int | s_test_count = 0 |
! List of testcases to execute. Initialized via add_...() | |
static int | s_test_fail = 0 |
! Total number of tests executed | |
static QStringList | s_failed_tests |
! Number of failed tests |
TESTadd_(t) -- Add a RoadTest.
Test Name objects using Qt's QTestLib
Template:
class Name_test : public RoadTest { Q_OBJECT #//Test slot private slots: void t_name(); Executed before any test void initTestCase(); void init(); // Each test Executed after each test void cleanup(); //RoadTest::cleanup(); Executed after last test void cleanupTestCase(); };
void add_Name_test() { new Name_test(); }
Send additional output to cout
Definition at line 54 of file RoadTest.h.
orgQhull::RoadTest::RoadTest | ( | ) | [inline] |
Definition at line 72 of file RoadTest.h.
orgQhull::RoadTest::~RoadTest | ( | ) | [inline] |
Definition at line 73 of file RoadTest.h.
void orgQhull::RoadTest::cleanup | ( | ) | [slot] |
Executed after each test.
Reimplemented in orgQhull::QhullFacet_test, orgQhull::QhullPoint_test, orgQhull::QhullHyperplane_test, orgQhull::QhullVertex_test, orgQhull::QhullFacetList_test, orgQhull::QhullRidge_test, orgQhull::Qhull_test, orgQhull::QhullFacetSet_test, orgQhull::QhullPointSet_test, orgQhull::QhullFacetSet_test, orgQhull::UsingLibQhull_test, orgQhull::QhullPoints_test, orgQhull::QhullSet_test, and orgQhull::QhullLinkedList_test.
Definition at line 37 of file RoadTest.cpp.
void orgQhull::RoadTest::recordFailedTest | ( | ) |
Definition at line 48 of file RoadTest.cpp.
int orgQhull::RoadTest::runTests | ( | QStringList | arguments | ) | [static] |
Definition at line 58 of file RoadTest.cpp.
QStringList orgQhull::RoadTest::s_failed_tests [static, protected] |
! Number of failed tests
Definition at line 64 of file RoadTest.h.
int orgQhull::RoadTest::s_test_count = 0 [static, protected] |
! List of testcases to execute. Initialized via add_...()
Definition at line 62 of file RoadTest.h.
int orgQhull::RoadTest::s_test_fail = 0 [static, protected] |
! Total number of tests executed
Definition at line 63 of file RoadTest.h.
QList< RoadTest * > orgQhull::RoadTest::s_testcases [static, protected] |
Definition at line 61 of file RoadTest.h.