Skip to content

pytest-sugar surpasses hypothesis statistics #221

@amolgawai

Description

@amolgawai

I am running tests with hypothesis and want to see the statistics hypothesis provides. It seems that pytest-sugar doesn't show the statistics.

Command used to run pytest

pytest --hypothesis-show-statistics

Output

Test session starts (platform: darwin, Python 3.8.2, pytest 6.2.2, pytest-sugar 0.9.4)
rootdir: /Users/amolgawai/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/algo-practice, configfile: pyproject.toml, testpaths: tests
plugins: hypothesis-6.1.1, pythonpath-0.7.3, cov-2.11.1, sugar-0.9.4
collecting ... 
 tests/test_graph_bfs.py ✓✓                                                                                     40% ████       tests/test_sorting.py ✓✓✓                                                                                     100% ██████████
=================================================== Hypothesis Statistics ====================================================
Results (0.51s):
       5 passed

If I use -p no:sugar, the statistics are shown properly.

Can pytest-sugar show proper output for hypothesis statistics?

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rd-partyThird party plugin incompatibility

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions