Closed caufieldjh closed 1 year ago
Excellent @caufieldjh! This worked like a charm for me too and it also seems to avoid that weird thing @iQuxLE was observing where lib.rs was counted as having several thousand lines of code (?)
Great, it works on M1 too then. Will try to incorporate into the workflow as part of #55
Note that the pytest cov report needs pip install pytest-cov
Done in #55
@iQuxLE and I looked at https://github.com/cjermain/rust-python-coverage in an attempt to get test coverage calculation working in a way that works with PyO3 (
cargo-tarpaulin
consistently produced verbose errors seemingly related to PyO3).Here's what worked (for me, at least):
This will run the rust tests and generate coverage reports in
output-dir
. Including python tests should just require: