-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathqtctestrunconfiguration.h
More file actions
executable file
·92 lines (80 loc) · 3.05 KB
/
qtctestrunconfiguration.h
File metadata and controls
executable file
·92 lines (80 loc) · 3.05 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/* Copyright 2016-2020 Pascal COMBES <pascom@orange.fr>
*
* This file is part of QtcDevPlugin.
*
* QtcDevPlugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* QtcDevPlugin is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with QtcDevPlugin. If not, see <http://www.gnu.org/licenses/>
*/
#ifndef QTCTESTRUNCONFIGURATION_H
#define QTCTESTRUNCONFIGURATION_H
#include "qtcrunconfiguration.h"
#include <QWidget>
namespace ProjectExplorer {
class ProjectNode;
class Project;
class Target;
}
namespace QtcDevPlugin {
namespace Internal {
class QtcTestRunConfiguration;
/*!
* \brief The QtcTestRunConfiguration class stores information required to start a test instance of Qt Creator
*
* When an instance of this class is added to a target, Qt Creator will propose to the user to
* start Qt Creator with the plugin being developped loaded. It will then start the tests
* associated with this plugin. It also tries to ensure that all other
* versions of the plugin are hidden (by moving them to alternative pathes) when Qt Creator stats,
* so that the current version is the only loaded in the current Qt Creator instance.
* Otherwide the tests of the other instance could shadow those of the current version being tested.
*
* This run configuration can be easily edited using QtcRunConfigurationWidget, which
* defines a suitable form wigdet to ease this process.
*
* \sa QtcRunConfigurationWidget
*/
class QtcTestRunConfiguration : public QtcRunConfiguration
{
Q_OBJECT
public:
/*!
* \brief Constructor
*
* Creates a new instance with parent target.
* \param parent The parent build configuration
* \param id The id for the run configuration
* \sa initialize()
*/
QtcTestRunConfiguration(ProjectExplorer::BuildConfiguration* parent, Utils::Id id = Utils::Id(Constants::QtcTestRunConfigurationId));
/*!
* \copydoc QtcRunConfiguration::commandLineArgumentsList()
*/
virtual QStringList commandLineArgumentsList(void) const override;
/*!
* \brief The run configuration id
*
* This function returns the id for instances of this class.
* \return The run configuration id
*/
static Utils::Id id(void);
/*!
* \brief The run configuration pattern for display name
*
* This function returns the pattern used to generate the display name for the run configuration.
* If %1 is used, it will be replaced by the plugin name.
* \return The pattern for the display name of the run configuration.
*/
static QString displayNamePattern(void);
};
} // Internal
} // QtcDevPlugin
#endif // QTCTESTRUNCONFIGURATION_H