Tests created with pytest_pycollect_makeitem or non-python tests can't be used in pytest_generate_tests #13814
Unanswered
sashko1988
asked this question in
Q&A
Replies: 1 comment 3 replies
-
As long as definition nodes are not exposed youd need a gruesome hack Items are the output after generate tests not the input |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks.
I have python tests that don't follow the pytest convention. Their classes have
__init__
, other helper methods have specific execution order before the runner starts executing actual tests.pytest_pycollect_makeitem
made them work with pytest.Also, I have non-Python tests. To make them work with pytest, I followed your example with yaml files
But now I want to use the pytest-repeat plugin. It generates tests using
pytest_generate_tests
.The plugin works flawlessly with pytest tests. However,
pytest_generate_tests
isn't called for my custom tests.Example of my custom collector plugin:
What should I add to make those items usable with
pytest_generate_tests
?Beta Was this translation helpful? Give feedback.
All reactions