Summary: | Unit-test not discovered when added using gtest_discover_tests() | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Thibault North <thibault.north> |
Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kde/kdevelop/commit/d5e3e27bb2720d84adda95de07a728a9e61c866f | Version Fixed In: | 5.4.0 |
Sentry Crash Report: | |||
Attachments: | diff for importTestSuite.{cpp,h} |
Description
Thibault North
2019-03-08 15:51:03 UTC
Git commit d5e3e27bb2720d84adda95de07a728a9e61c866f by Milian Wolff, on behalf of Thibault North. Committed on 20/03/2019 at 18:27. Pushed by mwolff into branch 'master'. CMake: discover more unit tests Discover unit-tests using bracket arguments and/or listed in files other than CTestTestFile.cmake: When using gtest_discover_tests(), add_test() directives are present in various .cmake files. To date, Kdevelop searches for unit-tests does not follow include() directives present in the main CTestTestfile.cmake, leading to no unit-tests being shown. Additionally, the bracket arguments of CMake is not enabled for parsing tests arguments. This patch enables them, and follows include() directives. Reviewers: apol, kfunk, mwolff Reviewed By: mwolff Subscribers: mwolff, kdevelop-devel Tags: #kdevelop Differential Revision: https://phabricator.kde.org/D19673 M +11 -4 plugins/cmake/cmakeutils.cpp M +1 -0 plugins/cmake/parser/cmakelistsparser.cpp https://invent.kde.org/kde/kdevelop/commit/d5e3e27bb2720d84adda95de07a728a9e61c866f |