Review Request 124861: kdevelop: Add CppUTest unit test template
Kevin Funk
kfunk at kde.org
Mon Aug 24 14:13:02 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124861/#review84284
-----------------------------------------------------------
Can you push yourself?
- Kevin Funk
On Aug. 21, 2015, 9:30 a.m., Boris Egorov wrote:
>
> -----------------------------------------------------------
> 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.
>
>
> 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/a31bcdcf/attachment.html>
More information about the KDevelop-devel
mailing list