RocketPy-Team / RocketPy

Next generation High-Power Rocketry 6-DOF Trajectory Simulation
https://docs.rocketpy.org/
MIT License
647 stars 158 forks source link

TST: Increase code coverage to 90% #709

Open Gui-FernandesBR opened 1 month ago

Gui-FernandesBR commented 1 month ago

For a python library like ours, a 90% coverage threshold should be the ideal. It should already consider the slow tests as well.

Coverage is not the only metric that matters, but it is the best one.

Gui-FernandesBR commented 3 weeks ago

As of today, we have a cc of 87% when considering the slow tests. image

Unfortunately, when we exclude the slow tests this number reduced to only 76%.

Ideally, given that RocketPy is a library, code coverage should be of 99.9% with slow tests and 90% without the slow tests