Closed ttimbers closed 3 years ago
@ttimbers - first draft of this chapter is finished and ready for a review. I've moved it to "Proofs".
Whoohoo! I'll review this today!
[ ] OK, I think we should add more on coverage. I have a good section here from my lecture notes that explains what coverage is, what is line vs branch. How you can get each from pytest-cov, and how pytest-cov (well coverage really) actually calculates this (it is not well documented anywhere...). Also, let's use branching to demo the html reports, as they are a lot more useful for that. We just copy this over in large part I think? My example function and test for introducing line and branch coverage could be made a bit more realistic however...
We need to write a chapter on testing using pytest. This chapter does not include the CI parts of testing. That is for a later chapter on CI and other bells and whistles.