cholla-hydro / cholla

A GPU-based hydro code
https://github.com/cholla-hydro/cholla/wiki
MIT License
65 stars 32 forks source link

Add the ability to generate test coverage reports #318

Closed bcaddy closed 1 year ago

bcaddy commented 1 year ago

The run_tests.sh script now has the ability to generate a coverage report for the CPU code. It can be generated by passing the -l flag to the buildAndRunTests function then the coverage report will be available in the generated HTML website in bin/html_coveragereport${CHOLLA_MAKE_TYPE}

The reason that this isn't being added to the CI pipeline is that there's no way to generate a coverage report of GPU code and that substantially limits the usefulness of a coverage report for us. If that changes in the future then having coverage information could be useful.