Jammy2211 / PyAutoGalaxy

PyAutoGalaxy: Open-Source Multiwavelength Galaxy Structure & Morphology
https://pyautogalaxy.readthedocs.io/
MIT License
28 stars 14 forks source link

TST: Add test coverage report #66

Closed pllim closed 1 year ago

pllim commented 2 years ago

For example, using https://about.codecov.io/ and pytest coverage extension. Report that coverage as part of your CI and add a badge of that coverage in your README. If possible, shoot for 90% or better though I understand that is not always possible (e.g., if bulk of your code runs on numba and that isn't possible on Actions).

Also, I understand that high coverage does not mean all the edge cases are tested.

Bonus: Do consider using Hypothesis (https://hypothesis.readthedocs.io/) if you really care about catching edge cases where numerical computations are really important.

https://github.com/astropy/astropy.github.com/pull/491#issuecomment-1215349065

Jammy2211 commented 1 year ago

Added https://github.com/Jammy2211/PyAutoGalaxy/pull/81