pele-python / pele

Python energy landscape explorer
Other
95 stars 41 forks source link

add coverage to cpp tests using cmake and gcov #103

Closed js850 closed 9 years ago

js850 commented 9 years ago

You can see the coverage by compiling the tests with CMAKE_BUILD_TYPE set to Coverage. You can do this in ccmake, or with the command

cmake ../source/ -DCMAKE_BUILD_TYPE=Coverage

You then compile the target

make pele_tests_coverage

which compiles the tests, runs them, and outputs the coverage information in html format to a folder coverage/

The next step is to combine this with the python coverage and report both to coveralls.io

kjs73 commented 9 years ago

It will be cool to have the cpp tests included in the coverage!

smcantab commented 9 years ago

did you see the email that I forwarded to you about this a couple of days ago?

On Mon, Dec 1, 2014 at 7:55 PM, Julian Schrenk notifications@github.com wrote:

It will be cool to have the cpp tests included in the coverage!

— Reply to this email directly or view it on GitHub https://github.com/pele-python/pele/pull/103#issuecomment-65124380.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling e9db57c34562d58ae0f0d373d325789e58a401d2 on js850:cpp_coverage into afe6526fb5db9bc2e23bfc9dadf19d9f4da04813 on pele-python:master.

js850 commented 9 years ago

I got it to report both cpp and python coverage results to coveralls using coverage-merge https://github.com/wiredfool/coveralls-merge