diff options
author | Christian Stenger <[email protected]> | 2016-10-31 13:11:52 +0100 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2016-12-09 11:33:27 +0000 |
commit | cdd94cbb026c745b55468cd37d21c9d64b98ca27 (patch) | |
tree | 5c6f1e79e435bf3cb10f1c2b16d682b3f13f8c69 /src/plugins/autotest/testresult.h | |
parent | 5b6e9671d7b2e5b3e867d5285aec625c672e8df4 (diff) |
AutoTest: Make results tree a real tree
Provide a way to control how the results tree will be
generated for the respective test framework and use
this information to construct a real tree.
Basically this changes the layout of Qt test results,
but keeps the former layout of Google test results.
Task-number: QTCREATORBUG-17104
Change-Id: I7fca4d8e365bfebcca4cf7855cf6a882e5379143
Reviewed-by: David Schulz <[email protected]>
Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresult.h')
-rw-r--r-- | src/plugins/autotest/testresult.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/autotest/testresult.h b/src/plugins/autotest/testresult.h index 4256aaedf8a..034adf51883 100644 --- a/src/plugins/autotest/testresult.h +++ b/src/plugins/autotest/testresult.h @@ -59,6 +59,7 @@ enum Type { MessageTestCaseFail, MessageTestCaseEnd, MessageTestCaseRepetition, + MessageIntermediate, MessageCurrentTest, INTERNAL_MESSAGES_END = MessageCurrentTest, Invalid, @@ -91,6 +92,10 @@ public: static QString resultToString(const Result::Type type); static QColor colorForType(const Result::Type type); + virtual bool isDirectParentOf(const TestResult *other, bool *needsIntermediate) const; + virtual bool isIntermediateFor(const TestResult *other) const; + virtual TestResult *createIntermediateResultFor(const TestResult *other); + private: QString m_name; Result::Type m_result = Result::Invalid; |