Repository navigation
Find the path/nodeid of the collected test when using marker to run the tests #7905
My goal here is to run the tests using only markers, find the Thanks, |
Replies: 2 comments 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 |
|
closing as resolved due to lack of feedback after the base mechanism was explained |
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
pytest_collection_finishhook:During
pytest_configurethat's not possible because collection has not even started yet.