Add support for conditional coverage
See original GitHub issueOriginally reported by Thomas Pansino (Bitbucket: tpansino, GitHub: tpansino)
Coming from the Perl world with its excellent Devel::Cover
module, I’m quite surprised that the most popular equivalent coverage package in Python doesn’t have any support for conditional coverage. This can be a useful metric similiar to branch coverage to ensure all combinations of boolean conditionals are tested properly.
The best tool I’ve found so far to measure this is @desmaj’s instrumental
utility, which is in need of some updates for Python 3 compatibility and some general polishing and love.
I’m thinking there may be an opportunity here to incorporate some of the work done in instrumental
into coverage.py
. I don’t know that I have the Python expertise to do the work myself, but I’m happy to learn and contribute in whatever way I can.
First thing’s first - where does this idea fall on the coverage.py
roadmap?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:19 (13 by maintainers)
5.0 alphas are available now, and feedback is appreciated. I’m hoping to have the beta this month.
I see. https://github.com/nedbat/coveragepy/issues/660#issuecomment-399708946 is a suggestions by @tpansino. It is not implemented yet in coverage.py. I’m not sure the status of their work.