Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate test coverage information from pyunit unittests?

I have some pyunit unit tests for a simple command line programme I'm writing. Is it possible for me to generate test coverage numbers? I want to see what lines aren't being covered by my tests.

like image 657
Amandasaurus Avatar asked Dec 30 '22 16:12

Amandasaurus


1 Answers

I regularly use Ned Batchelder's coverage.py tool for exactly this purpose.

like image 70
Alex Martelli Avatar answered Jan 13 '23 12:01

Alex Martelli