diff options
author | Christian Stenger <[email protected]> | 2016-05-20 15:05:33 +0200 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2016-05-20 19:23:07 +0000 |
commit | 5ec1faa64f8b441c48c29fe11d2e216c5ca5cd7d (patch) | |
tree | c84b1bf6793cc27c48356b42b9c51e0d428851b4 /src/plugins/autotest/autotestunittests.cpp | |
parent | f6bf3344d63e18895fe8612351749829cbddc31a (diff) |
AutoTest: Provide additional test project...
...to also test combination of Qbs using Google Test.
Change-Id: I4a5d32a32bfaadd0dfaaa4884b58d2ac1a952bd3
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/autotest/autotestunittests.cpp')
-rw-r--r-- | src/plugins/autotest/autotestunittests.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/plugins/autotest/autotestunittests.cpp b/src/plugins/autotest/autotestunittests.cpp index d20fcf81490..2628c0698d1 100644 --- a/src/plugins/autotest/autotestunittests.cpp +++ b/src/plugins/autotest/autotestunittests.cpp @@ -194,9 +194,9 @@ void AutoTestUnitTests::testCodeParserGTest() if (qgetenv("GOOGLETEST_DIR").isEmpty()) QSKIP("This test needs googletest - set GOOGLETEST_DIR (point to googletest repository)"); + QFETCH(QString, projectFilePath); CppTools::Tests::ProjectOpenerAndCloser projectManager; - CppTools::ProjectInfo projectInfo = projectManager.open( - QString(m_tmpDir->path() + QLatin1String("/simple_gt/simple_gt.pro")), true); + CppTools::ProjectInfo projectInfo = projectManager.open(projectFilePath, true); QVERIFY(projectInfo.isValid()); QSignalSpy parserSpy(m_model->parser(), SIGNAL(parsingFinished())); @@ -226,5 +226,14 @@ void AutoTestUnitTests::testCodeParserGTest() QCOMPARE(m_model->dataTagsCount(), 0); } +void AutoTestUnitTests::testCodeParserGTest_data() +{ + QTest::addColumn<QString>("projectFilePath"); + QTest::newRow("simpleGoogletest") + << QString(m_tmpDir->path() + QLatin1String("/simple_gt/simple_gt.pro")); + QTest::newRow("simpleGoogletestQbs") + << QString(m_tmpDir->path() + QLatin1String("/simple_gt/simple_gt.qbs")); +} + } // namespace Internal } // namespace Autotest |