nbdev
nbdev copied to clipboard
`nbdev_test` Coverage
I think it would be very beneficial if the coverage report can be shown when nbdev_test
also reports the coverages. I don't think (or know) if there is an easy way to do it within the nbdev
system.
One way that seems to work in my minimal case is first to extract all the tests to test files, and try to reference modules in that test files. It is similar to nbdev_export
, but tries to export test cases. Then, I run coverage.py on these test files for reporting test coverages.
I am wondering if there exists an easier way that does not require exporting to dedicated test files. Will nbdev
team officially support this feature?