Review Request 124861: kdevelop: Add CppUTest unit test template
Boris Egorov
egorov at linux.com
Fri Aug 21 09:30:45 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124861/
-----------------------------------------------------------
(Updated Aug. 21, 2015, 9:30 a.m.)
Review request for KDevelop.
Changes
-------
Fix case of "CppUTest" string
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 (updated)
-----
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/20150821/8beaa0c0/attachment.html>
More information about the KDevelop-devel
mailing list