mozilla / spade

Automated scraping markup+CSS from a list of relevant URLs, using a variety of user-agent strings. Provides reporting on usage of CSS properties and apparent user-agent sniffing.
22 stars 9 forks source link

Testing #14

Closed samliu closed 12 years ago

samliu commented 12 years ago
carljm commented 12 years ago

Just merged this - looks great! You're now at about 87% test coverage. If you want to take a look at the coverage yourself, here's how:

pip install coverage
coverage run --branch runtests.py     # runs the tests under coverage monitorying, with code-branch tracking
coverage html --include='spade/*' --omit='spade/tests/*'    # we want to see coverage for spade/ except for spade/tests
firefox htmlcov/index.html    # "coverage html" outputs by default into "htmlcov/"

If you feel like it, you could add a script to do some of this into the repo, and add htmlcov to .gitignore.