#include <TestItem.h>
Inheritance diagram for KXQTS::TestItem:


Public Types | |
| enum | ExecutionMode { InProcess = 1, OutOfProcess, RunFailsafe } |
| enum | ExecutionStage { CompileOnly = 1, CompileAndRun } |
| typedef QPair< int, int > | ResultSummary |
Public Member Functions | |
| virtual TestResult::List | execute (const ExecutionMode mode, const ExecutionStage stage, TestSuite *ts)=0 |
| virtual bool | isFinalNode () const=0 |
| virtual ResultSummary | resultSummary () const=0 |
Definition at line 35 of file TestItem.h.
| typedef QPair<int, int> KXQTS::TestItem::ResultSummary |
Represents a summary of test results for a collection of tests. QPair::first contains the amount of passed tests; QPair::second contains the count of all tests. For example TestCase::summary() returns ResultSummary(0, 1) or ResultSummary(1, 1) depending on whether the TestCase have succeeded or not.
Definition at line 93 of file TestItem.h.
KXQTS provides different ways of executing tests, this enumerator identifies how a set of tests are run.
Definition at line 44 of file TestItem.h.
Determines how far an test case execution should go.
| CompileOnly | The query will not be run. It will only go through the (whole) compilation stage. |
| CompileAndRun | The query will be compiled and run, as ordinary. |
Definition at line 72 of file TestItem.h.
| virtual TestResult::List KXQTS::TestItem::execute | ( | const ExecutionMode | mode, | |
| const ExecutionStage | stage, | |||
| TestSuite * | ts | |||
| ) | [pure virtual] |
Executes the test case(s) this TestItem represents, and return the TestResult. For example, the TestGroup returns the result of its children concatenated, while TestCase always returns a list containing one TestResult(what it evaluated to).
Implemented in KXQTS::TestCase, and KXQTS::TestContainer.
| virtual bool KXQTS::TestItem::isFinalNode | ( | ) | const [pure virtual] |
Implemented in KXQTS::TestCase, and KXQTS::TestContainer.
| virtual ResultSummary KXQTS::TestItem::resultSummary | ( | ) | const [pure virtual] |
Implemented in KXQTS::TestCase, and KXQTS::TestContainer.
1.5.1