Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Coverage and Unit Testing of Python Code

I have already visited Preferred Python unit-testing framework. I am not just looking at Python Unit Testing Framework, but also code coverage with respect to unit tests. So far I have only come across coverage.py. Is there any better option?

An interesting option for me is to integrate cpython, unit testing of Python code and code coverage of Python code with Visual Studio 2008 through plugins (something similar to IronPython Studio). What can be done to achieve this? I look forward to suggestions.

like image 506
bhadra Avatar asked Sep 06 '25 09:09

bhadra


1 Answers

We use this Django coverage integration, but instead of using the default coverage.py reporting, we generate some simple HTML: Colorize Python source using the built-in tokenizer.

like image 118
Tony Arkles Avatar answered Sep 11 '25 10:09

Tony Arkles