Skip to content

Coverage of assert statements. #160

Open
@nedbat

Description

@nedbat

Originally reported by npinto (Bitbucket: npinto, GitHub: npinto)


Hello,

I'm trying to use coverage.py to get the coverage (duh!) of both outcomes in assert statements [1]. Am I missing something or is this not (yet) possible?

Let me know how can I contribute.

Nicolas

[1] In our code base we use many (possibly very slow) asserts during development, this is really useful in production for performance reasons since we can use python -OO to remove the execution of asserts.


Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions