first try to use a unit test based framework

Tomaz Canabrava tcanabrava at kde.org
Mon Apr 14 10:35:10 PDT 2014


Second try, with dirk's input on IRC.


On Mon, Apr 14, 2014 at 1:46 PM, Tomaz Canabrava <tcanabrava at kde.org> wrote:

>
> So -
> CMake has a testing framework called CTest that can generate html reports
> and it's easy to integrate a new test on it. I created this in cmake *only*
> because it was what I had used before, tried to learn the docs for qmake +
> tests and it was a bit frustrating / hard to do.
>
>
> what this does right now:
> 1 - compiles subsurface in small libraries
> ( core, ui, profile )
> 2 - compiles tests that are linked to those libraries
> 3 - run tests by running 'make test'
>
> make test will run
> a few tests are failing, even using IS_FP_SAME, and the plan is to
> increase the amount
> of code tested to 100% over time ( we can also include the gcov tool to
> get the percent of code that is tested. )
>
> Tomaz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/eab72b8d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-a-Readme.testing-file-with-explanations-on-how-t.patch
Type: text/x-patch
Size: 1266 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/eab72b8d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-First-test-case-implemented.patch
Type: text/x-patch
Size: 2361 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/eab72b8d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-CMake-based-buildsystem-for-the-tests.patch
Type: text/x-patch
Size: 6125 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140414/eab72b8d/attachment-0002.bin>


More information about the subsurface mailing list