I really really hate the QTestLib output on my Mac. It's a very ugly xwindows console result. More...
#include <test.h>
Public Member Functions | |
TestCase () | |
Constructs the testcase. | |
virtual TestEngine * | engine () |
This method returns the current engine. | |
virtual void | setEngine (TestEngine *engine) |
virtual OutputHandler * | out () |
this method returns the outputhandler | |
virtual void | testTrueImpl (bool condition, const char *statement, const QString &description, const char *file, int line) |
The test true implementation. | |
virtual void | testEqualImpl (bool result, const QString &actual, const QString &expected, const char *actualStatement, const char *expectedStatement, const QString &description, const char *file, int line) |
The test equal implementation. | |
virtual void | testSkipImpl (const QString &description, const char *file, int line) |
Implements the skip test operation. | |
virtual TestCase * | currentTest () |
this method returns the current testcase | |
virtual QString | currentMethodName () |
virtual void | giveTestResultToEngine (TestResult *result) |
Gives the testresult to the engine. | |
I really really hate the QTestLib output on my Mac. It's a very ugly xwindows console result.
This extemely simple testing support class makes it possible for met to output the test results to a WebKit window. Where I can added clickable divs etc. to show test result details
The basic conventions for these tests are the sames as those of QTest. The main difference is the usage of exta output/compare info output messsages A simple unit test. Every private slot is called for a test
|
explicit |
Constructs the testcase.
|
virtual |
|
virtual |
this method returns the current testcase
|
inlinevirtual |
This method returns the current engine.
|
virtual |
Gives the testresult to the engine.
|
virtual |
this method returns the outputhandler
|
inlinevirtual |
|
virtual |
The test equal implementation.
result | the result of the compare |
actual | the actual result |
expected | the expected result |
actualStatement | the statement of the operation |
exptectedStatement | the expected statement |
description | the description of this test item |
file | the source file |
line | the line number |
|
virtual |
Implements the skip test operation.
description | the description of the test |
file | the source file |
line | the line number |
|
virtual |
The test true implementation.
condition | the condition to test |
statement | the statement of the operation |
description | the description of this test item |
file | the source file |
line | the line number |