Review Request 124861: kdevelop: Add CppUTest unit test template
Boris Egorov
egorov at linux.com
Mon Aug 24 15:01:40 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124861/
-----------------------------------------------------------
(Updated Aug. 24, 2015, 3:01 p.m.)
Status
------
This change has been marked as submitted.
Review request for KDevelop.
Changes
-------
Submitted with commit a71426e203be3d9e5e0aff018b28a2b0ec9bb407 by Boris Egorov to branch master.
Repository: kdevelop
Description
-------
Add CppUTest unit test file template.
To actually use it you will need to create a file to run tests (say, test_something_main.cpp):
#include <CppUTest/CommandLineTestRunner.h>
int main(int argc, char *argv[]) {
// MemoryLeakWarningPlugin::turnOffNewDeleteOverloads();
return CommandLineTestRunner::RunAllTests(argc, argv);
}
And add a library to a new target:
add_executable(test_something
test_something_unit_1.cpp
test_something_unit_2.cpp
test_something_main.cpp)
target_link_libraries(test_something CppUTest)
Diffs
-----
file_templates/CMakeLists.txt 5ca00fd
file_templates/testing/cpp_cpputest/class.cpp PRE-CREATION
file_templates/testing/cpp_cpputest/cpp_cpputest.desktop PRE-CREATION
Diff: https://git.reviewboard.kde.org/r/124861/diff/
Testing
-------
Build, add and run a few tests for existing project
Thanks,
Boris Egorov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150824/39033b99/attachment-0001.html>
More information about the KDevelop-devel
mailing list