Skip to content

Measuring coverage of custom hypothesis strategies #1392

@pckroon

Description

@pckroon

Hi all,

I'm back again with more questions. I made a strategy for generating NetworkX graphs (https://github.com/pckroon/hypothesis-networkx) but I'm having issues testing it.

The tests (eventually) pass, but the measured coverage points to 47 missed lines (all the code in the actual strategy). I have the feeling this is a side effect of hypothesis using coverage, or otherwise obfuscating what code is actually run. Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionnot sure it's a bug? questions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions