Code coverage and continuous integration with quantlib

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Code coverage and continuous integration with quantlib

Arthur Pham
Hi all,

For the last couple of days I have been trying to set up a continuous integration server (hudson/jenkins) on quantlib trunk (both svn and git).

I managed to get for each commit :
    1/ compilation of quantlib (under mac os x server) : report any compilation errors
    2/ retrieve warnings from gcc
    3/ launch the c++ test suite (i guess performance of each case could be recorded to get a trend) with code coverage.

You will find below the result of the code coverage report. 
In the screenshot you have the folders sorted by decreasing % line coverage.

Also in the coverage report i saw something wierd : The file rangeaccrual.cpp in the test suite is not launched from quantlibtestsuite.cpp.

Cheers,

Arthur

<img src="webkit-fake-url://AA3D7F51-C956-437D-805C-9FD27CE33355/image.tiff">



------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Code coverage and continuous integration with quantlib

Arthur Pham
With the file, sorry :(.

Arthur

On Thu, Mar 10, 2011 at 10:03 PM, Arthur Pham <[hidden email]> wrote:
Hi all,

For the last couple of days I have been trying to set up a continuous integration server (hudson/jenkins) on quantlib trunk (both svn and git).

I managed to get for each commit :
    1/ compilation of quantlib (under mac os x server) : report any compilation errors
    2/ retrieve warnings from gcc
    3/ launch the c++ test suite (i guess performance of each case could be recorded to get a trend) with code coverage.

You will find below the result of the code coverage report. 
In the screenshot you have the folders sorted by decreasing % line coverage.

Also in the coverage report i saw something wierd : The file rangeaccrual.cpp in the test suite is not launched from quantlibtestsuite.cpp.

Cheers,

Arthur





------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

code_coverage_quantlib.png (316K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Code coverage and continuous integration with quantlib

Luigi Ballabio
On Thu, 2011-03-10 at 22:08 -0500, Arthur Pham wrote:
>         Also in the coverage report i saw something wierd : The file
>         rangeaccrual.cpp in the test suite is not launched from
>         quantlibtestsuite.cpp.

You're right---and surprise, surprise, the range-accrual tests fail if I
enable them...  Nando, can you look into this?

Luigi



--

An ideal world is left as an exercise to the reader.
-- Paul Graham



------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev