test retrieval

M Breugelmans mbr.nxi at gmail.com
Sun Nov 16 11:33:03 UTC 2008


Test location information is now fetched through ctest, instead of
through the KDevelop-cmake parser. It works by parsing
CTestTestfile.cmake's in the build directory. The reasons behind this
change are:

- API in IProjectFileManager was no good, a generic approach for one
specific case (cmake+ctest) is wrong.
- Removes the KDevelop-cmake dependency, so a future standalone runner
will have zero-conf discovery as well. No more coupling between the
projectlib and veritas either.
- More powerfull since, for example, IF'ed tests are skipped automagically
- Very little, simple code: 1 class ~ 80 sloc. All the heavy lifting
is done by cmake
- Fast enough: 0.1 sec to retrieve KDevelops test-suite structure

Sure, yet another parser is no good but this one is trivial because
the input is auto-generated. On the other hand it would be better if
ctest had an XML interface with test location info. After reading
through the ctest code I'd say that this could be done with a small
patch ...


Manuel




More information about the KDevelop-devel mailing list