Replies: 1 comment 2 replies
-
Hi @rafaelcs, To get the nodeid/paths of the collected items, you should look into the items themselves after the collection is done, possibly with the def pytest_collection_finish(session):
for item in session.items:
print(item.nodeid, "=>", item.fspath) During |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
a detailed description of the bug or problem you are having
When running the tests using a marker, I'm not able to find the path/nodeid of the collected tests.
output of
pip list
from the virtual environment you are usingpytest and operating system versions
Pytest version:
pytest 6.1.0
OS: MacOS Catalina version 10.15.7
minimal example if possible
pytest_configure
hook to theconftest.py
pytest -m ui_test_marker
ui_test_marker
marker, note that theconfig.option.file_or_dir
option is emptyMy goal here is to run the tests using only markers, find the
path/nodeid
of the collected tests and based on this path, perform some actions on thepytest_configure
hook.Thanks,
Rafael
Beta Was this translation helpful? Give feedback.
All reactions