blob: 85785d44fcad04767f1c02ee78307c59e9a30c91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "../testoutputreader.h"
namespace Utils { class Process; }
namespace Autotest {
namespace Internal {
class CTestOutputReader final : public Autotest::TestOutputReader
{
public:
CTestOutputReader(Utils::Process *testApplication, const Utils::FilePath &buildDirectory);
protected:
void processOutputLine(const QByteArray &outputLineWithNewLine) final;
TestResult createDefaultResult() const final;
private:
void sendCompleteInformation();
int m_currentTestNo = -1;
QString m_project;
QString m_testName;
QString m_description;
ResultType m_result = ResultType::Invalid;
bool m_expectExceptionFromCrash = false;
};
} // namespace Internal
} // namespace Autotest
|