nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
520 stars 64 forks source link

Properly measure mamba's own coverage #72

Open angelsanzn opened 8 years ago

angelsanzn commented 8 years ago

Using mamba's built-in support for coverage to compute mamba's own coverage doesn't provide correct statistics, because by the time the CodeCoverageRunner is set up, half the mamba code has already run.

This runs mamba using the coverage run command-line tool, which allows coverage to hook in early in the import system and hence provide a correct measurement.