brainglobe / cellfinder-core

Standalone cellfinder cell detection algorithm
https://brainglobe.info/documentation/cellfinder/index.html
BSD 3-Clause "New" or "Revised" License
19 stars 16 forks source link

[Feature]: Measure code coverage of previously Cythonized code #110

Closed dstansby closed 1 year ago

dstansby commented 1 year ago

Now we've converted the Cython cell detection code to pure python, it would be good to look into collecting code coverage during tests for this.

The easy but slow way would be to do a test run with numba turned off, and just collect coverage as normal. There might be cleverer ways to test with numba enabled though. I know for example that Matplotlib collects test coverage of compiled .c code.

dstansby commented 1 year ago

For reference, https://github.com/numba/numba/issues/4268 is a currently open issue for adding the ability to measure code coverage of numba-compiled code.