Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest-sugar surpasses hypothesis statistics #221

Open
amolgawai opened this issue Feb 10, 2021 · 1 comment
Open

pytest-sugar surpasses hypothesis statistics #221

amolgawai opened this issue Feb 10, 2021 · 1 comment
Labels
3rd-party Third party plugin incompatibility

Comments

@amolgawai
Copy link

amolgawai commented Feb 10, 2021

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 amolgawai changed the title purest-sugar surpasses hypothesis statistics pytest-sugar surpasses hypothesis statistics Feb 10, 2021
eriol added a commit to eriol/poetrybot that referenced this issue Apr 20, 2021
This way it's possible to disable it with using

    pytest -p no:sugar

and this can be useful since, for example, hypothesis statistics are not
showed: Teemu/pytest-sugar#221
@relsunkaev
Copy link

Experiencing the same issue here

@Teemu Teemu added the 3rd-party Third party plugin incompatibility label Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd-party Third party plugin incompatibility
Projects
None yet
Development

No branches or pull requests

3 participants