[kdevelop] [Bug 405225] Unit-test not discovered when added using gtest_discover_tests()

2019-04-12 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=405225

Kevin Funk  changed:

   What|Removed |Added

   Version Fixed In||5.4.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 405225] Unit-test not discovered when added using gtest_discover_tests()

2019-03-20 Thread Milian Wolff
https://bugs.kde.org/show_bug.cgi?id=405225

Milian Wolff  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/kde/
   ||kdevelop/commit/d5e3e27bb27
   ||20d84adda95de07a728a9e61c86
   ||6f
 Status|REPORTED|RESOLVED

--- Comment #1 from Milian Wolff  ---
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   -4plugins/cmake/cmakeutils.cpp
M  +1-0plugins/cmake/parser/cmakelistsparser.cpp

https://invent.kde.org/kde/kdevelop/commit/d5e3e27bb2720d84adda95de07a728a9e61c866f

-- 
You are receiving this mail because:
You are watching all bug changes.