Review Request 124861: kdevelop: Add CppUTest unit test template
Kevin Funk
kfunk at kde.org
Fri Aug 21 08:59:50 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124861/#review84134
-----------------------------------------------------------
+1 to the idea. Would need to test to give it a final go.
file_templates/testing/cpp_cpputest/cpp_cpputest.desktop (line 2)
<https://git.reviewboard.kde.org/r/124861/#comment58257>
Casing: CppUTest
Repeats, please fix.
- Kevin Funk
On Aug. 21, 2015, 8:22 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, 8:22 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/testing/cpp_cpputest/cpp_cpputest.desktop PRE-CREATION
> file_templates/CMakeLists.txt 5ca00fd
> file_templates/testing/cpp_cpputest/class.cpp 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/5a31aed0/attachment.html>
More information about the KDevelop-devel
mailing list