Skip to content

Instantly share code, notes, and snippets.

@ptone
ptone / patch_coverage.py
Created October 21, 2011 00:17
Annotate coverage report with lines modified by patch
#!/usr/bin/env python
import os
from collections import defaultdict
import patch
import re
import coverage
import django
from optparse import OptionParser
import webbrowser