Closed ringods closed 6 years ago
Is this what you are looking for? https://github.com/jbasko/pytest-random-order/commit/525a069a12c43e6734d773af0af1f4d641adbf13
@jbasko yes, I guess something like that. By looking at the implementation of parent1
and parent2
, it's clear what you mean. But if someone would read this in the docs, would it be clear enough what it does? Maybe call it parent
and grandparent
?
@jbasko I noticed the 0.7.0
tag here on Github, but is there still something you need to do to have this version also available on Pypi? At the time of writing, the latest version is still 0.6.0
there.
I'm sorry, I forgot that for this project I need to manually do the upload to pypi.org. It is available now.
I have written two custom pytest plugins to test different aspects of an internal product. Each of these plugins has a custom way of collecting tests, passing custom subclasses of
pytest.File
,pytest.Collector
andpytest.Item
back to pytest.The
pytest-random-order
only works with theglobal
random bucket-type. All other bucket-type functions use the membermodule
, which is defined in the pytestpython
plugin:https://github.com/pytest-dev/pytest/blob/d61a7670a1d50eab367dfac03896d2811dbf5279/_pytest/python.py#L210
Since I pass back a tree with collections of tests (
root -> File* -> Collector* -> Item*
), it would be nice if randomisation could happen at the different levels of my custom pytest plugin.