|
Envision
A visual programming IDE for object-oriented languages
|
The TestResults class describes the outcome of series of tests run consecutively. More...
Public Member Functions | |
| void | addFailedCheck (const QString &message) |
| void | addFailedTest (const QString &testName) |
| void | addPassedCheck (const QString &message="OK") |
| void | addPassedTest (const QString &testName) |
| const QList< TestResult > & | getCheckResults () const |
| int | getNumExecutedChecks () const |
| int | getNumExecutedTests () const |
| int | getNumFailedChecks () const |
| int | getNumFailedTests () const |
| int | getNumPassedChecks () const |
| int | getNumPassedTests () const |
| const QList< TestResult > & | getTestResults () const |
| void | merge (const TestResults &other) |
| void | printResultStatistics () const |
| Prints a summary of the test results to the standard output. More... | |
Private Attributes | |
| QList< TestResult > | checkResults_ |
| int | numFailedChecks_ {} |
| int | numFailedTests_ {} |
| int | numPassedChecks_ {} |
| int | numPassedTests_ {} |
| QList< TestResult > | testResults_ |
The TestResults class describes the outcome of series of tests run consecutively.
Two things are logged here:
Typically a check is only logged if it fails, providing failure details. A test should be logged in all cases (failure or success).
| void SelfTest::TestResults::addFailedCheck | ( | const QString & | message | ) |
| void SelfTest::TestResults::addFailedTest | ( | const QString & | testName | ) |
| void SelfTest::TestResults::addPassedCheck | ( | const QString & | message = "OK" | ) |
| void SelfTest::TestResults::addPassedTest | ( | const QString & | testName | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void SelfTest::TestResults::merge | ( | const TestResults & | other | ) |
| void SelfTest::TestResults::printResultStatistics | ( | ) | const |
Prints a summary of the test results to the standard output.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |