From cb024acdaf0f94f8a563e8ddb34f35886b9ab5ee Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 15 Jun 2021 11:41:45 +0200 Subject: [PATCH] AutoTest: Give at least minor hint about ctest failures When running ctest we get by default only the output of ctest without any "real" test output. Finding the respective issue especially in bigger test applications is impossible without re-running the test manually. So, turn on output on failure for running ctest as long there is no settings page for ctest. Change-Id: I9a6468d0d43173bfcb2b140c96301449840d9517 Reviewed-by: David Schulz --- src/plugins/autotest/ctest/ctesttreeitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/autotest/ctest/ctesttreeitem.cpp b/src/plugins/autotest/ctest/ctesttreeitem.cpp index 085ecb65002..25e7ad44f14 100644 --- a/src/plugins/autotest/ctest/ctesttreeitem.cpp +++ b/src/plugins/autotest/ctest/ctesttreeitem.cpp @@ -107,6 +107,7 @@ QList CTestTreeItem::testConfigurationsFor(const QStringLi const ProjectExplorer::BuildSystem *buildSystem = target->buildSystem(); QStringList options{"--timeout", QString::number(AutotestPlugin::settings()->timeout / 1000)}; // TODO add ctest options from settings? + options << "--output-on-failure"; Utils::CommandLine command = buildSystem->commandLineForTests(selected, options); if (command.executable().isEmpty()) return {};