AutoTest: Enhance reporting passes and fails

Depending on the report and log level of Boost UTF
the number of test passes and fails might be wrong.
Circumvent by providing a way to report a summary.

Change-Id: I6d2cb7674550f10a0263e08d21cce42569f3d7a8
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-05-24 14:34:01 +02:00
parent 7459afaf3c
commit 12038dd012
5 changed files with 33 additions and 4 deletions

View File

@@ -48,6 +48,8 @@ public:
void createAndReportResult(const QString &message, ResultType type);
bool hadValidOutput() const { return m_hadValidOutput; }
int disabledTests() const { return m_disabled; }
bool hasSummary() const { return !m_summary.isEmpty(); }
QHash<ResultType, int> summary() const { return m_summary; }
void setId(const QString &id) { m_id = id; }
QString id() const { return m_id; }
@@ -64,6 +66,7 @@ protected:
QProcess *m_testApplication; // not owned
QString m_buildDir;
QString m_id;
QHash<ResultType, int> m_summary;
int m_disabled = -1;
private:
bool m_hadValidOutput = false;