Skip to content
Global sound
Test & Code

Test & Code

225: pytest-cov : The pytest plugin for measuring coverage

· 12 min · Episode 225

Show notes

pytest-cov is a pytest plugin that helps produce coverage reports using Coverage.py.
In this episode, we'll discuss:

• what Coverage.py is
• why you should measure code coverage on both your source and test code
• what pytest-cov is
• extra features pytest-cov gives you over and above coverage.py
• and generally why using both is awesome
Links:

• coverage.py
• pytest-cov
• how to set up context reports
• Top pytest Plugins
Errata:

• I mentioned that Coverage has the ability to show context (which line is covered by which test) for the past year or so.
• However, that feature was released…

Website: pythontest.com

Live, last hour: 8,777 songs on 4,888 stations in 124 countries

Discover the world through radio

More ways to discover (9)

Heard something good? Save it, or open it straight away in Spotify.

★ Artist of the week The fastest riser on the radio this week
Your song here? From € 9 per week →
Radio 538 luisteren - Live!Popular right now