pytest-dev / pytest-repeat

pytest plugin for repeating test execution
https://pypi.python.org/pypi/pytest-repeat/
Other
172 stars 27 forks source link

Adding Support for UnitTest Style Tests #51

Open Anjiang-Wei opened 3 years ago

Anjiang-Wei commented 3 years ago

I find the plugin pytest-flakefinder (https://github.com/dropbox/pytest-flakefinder), which seems to support UnitTest Style Tests already. You may want to refer to this file: https://github.com/dropbox/pytest-flakefinder/blob/master/tests/test_flakefinder.py Do you think it helpful for pytest-repeat?

Anjiang-Wei commented 3 years ago

It appears that the tests augmented with pytest-flakefinder plugin do not repeat in a function mode. For example, if setting scope=function mode for pytest-repeat, test1's repeat should be: test1, test1 (consecutively). However, it appears to me that it does not seem to be the case in pytest-flakefinder.

RonnyPfannschmidt commented 3 years ago

Unittest tests do not supported fixture parameterization, this won't change

okken commented 1 year ago

@RonnyPfannschmidt Would this be reasonable to document, and then close, as it's not fixable?

RonnyPfannschmidt commented 1 year ago

This ought to be documented as limitation imposed by the core unittesting plugin which doesn't support parameterization

okken commented 1 year ago

Ah. It's already documented I'm thinking a longer "Limitations" section in the README might be cool to cover this and any other items, like #21, but for now, this is already documented. This is in the README, but it's not obvious.

okken commented 1 year ago

@RonnyPfannschmidt Thanks for your thoughts on these issues.

RonnyPfannschmidt commented 1 year ago

If it's too easy to miss, maybe there is a way to make the reader stumble More to The point