[mlpack-git] [mlpack/mlpack] Adding test coverage (#705)

sumedhghaisas notifications at github.com
Fri Jun 24 05:43:48 EDT 2016


The test coverage is not complete though the basic framework is ready.

Completed things are - 
* Using gcov and lcov to calculate test coverage
* Added cmake option BUILD_WITH_COVERAGE to build mlpack with appropriate GCC flags
* Added cmake target mlpack_coverage to generate coverage with all tests
* bash script 'mlpack_coverage' will be generated in build folder which takes test suite as parameter('-t') for generate coverage for specific test
* Coverage result will be available in build/coverage/index.html

TODO list:
1) Coverage results get accumulated with every run. We need to make sure the previous result gets deleted for every run. 
2) Where to show these results? and how to upload it automatically?
3) Some hacks are needed for templated functions and classes.

Opening this pull request for discussion. 
You can view, comment on, or merge this pull request online at:

  https://github.com/mlpack/mlpack/pull/705

-- Commit Summary --

  * Adding test coverage

-- File Changes --

    A CMake/mlpack_coverage.in (64)
    M CMakeLists.txt (29)

-- Patch Links --

https://github.com/mlpack/mlpack/pull/705.patch
https://github.com/mlpack/mlpack/pull/705.diff

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/705
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160624/b68d2de4/attachment.html>


More information about the mlpack-git mailing list