D9919: Fix and improve CMake test finding and running
Miha Čančula
noreply at phabricator.kde.org
Tue Jan 16 13:08:18 UTC 2018
mihac created this revision.
Restricted Application added a subscriber: kdevelop-devel.
mihac requested review of this revision.
REVISION SUMMARY
This is a bunch of small changes that together enable running tests from
CMake with support for QtTest and viewing results in the tool view.
The changes include:
1. Enable listing test cases from tests defined with CMake and QtTest
- Extract sources for each target from cmake server
- Use target sources to look for QtTest declarations in them
- Fix the search for QtTest declarations, so that it works without access to the main() function body
2. When running tests, parse the output and report results
- Exctract output directly from the OutputModel, which is long-lived, and not from the shorter-lived OutputJob. The previous method would lose some lines of output.
- Wait for asynchronous output signals from OutputModel, which again prevents losing some lines of test program output.
REPOSITORY
R32 KDevelop
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D9919
AFFECTED FILES
plugins/cmake/cmakeprojectdata.h
plugins/cmake/cmakeserverimportjob.cpp
plugins/cmake/testing/ctestfindjob.cpp
plugins/cmake/testing/ctestrunjob.cpp
plugins/cmake/testing/ctestrunjob.h
plugins/cmake/testing/ctestsuite.cpp
plugins/cmake/testing/ctestutils.cpp
plugins/cmake/tests/test_ctestfindsuites.cpp
plugins/cmake/tests/test_ctestfindsuites.h
To: mihac
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180116/c265760b/attachment.html>
More information about the KDevelop-devel
mailing list