pytest-sugar icon indicating copy to clipboard operation
pytest-sugar copied to clipboard

pytest-sugar surpasses hypothesis statistics

Open amolgawai opened this issue 4 years ago • 1 comments

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?

amolgawai avatar Feb 10 '21 10:02 amolgawai

Experiencing the same issue here

relsunkaev avatar Oct 20 '21 21:10 relsunkaev