diff options
author | Christian Stenger <christian.stenger@digia.com> | 2014-11-06 16:01:06 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2014-12-04 13:52:16 +0100 |
commit | 0357b0e98bf049ddb2e365a6ddcace67c2f0e836 (patch) | |
tree | 4a28be6a20b83325f9bb580ba7495e799104f4cc /plugins/autotest/testconfiguration.cpp | |
parent | 85efa2c3c969392afbe869ed0fc4a4af91c739f4 (diff) | |
download | qt-creator-0357b0e98bf049ddb2e365a6ddcace67c2f0e836.tar.gz |
Add basic support for Qt Quick Test
Diffstat (limited to 'plugins/autotest/testconfiguration.cpp')
-rw-r--r-- | plugins/autotest/testconfiguration.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/autotest/testconfiguration.cpp b/plugins/autotest/testconfiguration.cpp index 4841a86fbf..bcb90d75b5 100644 --- a/plugins/autotest/testconfiguration.cpp +++ b/plugins/autotest/testconfiguration.cpp @@ -41,6 +41,26 @@ TestConfiguration::~TestConfiguration() m_testCases.clear(); } +/** + * @brief sets the test cases for this test configuration. + * + * Watch out for special handling of test configurations, because this method also + * updates the test case count to the current size of \a testCases. + * + * @param testCases list of names of the test functions / test cases + */ +void TestConfiguration::setTestCases(const QStringList &testCases) +{ + m_testCases.clear(); + m_testCases << testCases; + m_testCaseCount = m_testCases.size(); +} + +void TestConfiguration::setTestCaseCount(int count) +{ + m_testCaseCount = count; +} + void TestConfiguration::setTargetFile(const QString &targetFile) { m_targetFile = targetFile; |