[pytest-dev] all nodeids from a collected python file

2019-11-02 Thread Tibor Arpas
Hi, For pytest-testmon plugin I need to extract all node ids which exist in a python file (after parametrization). Initially, I thought pytest_collection_modifyitems used as a hookwrapper would have all the node_ids in all the files (which would be ideal for me). It turns out if you call pytest te

Re: [pytest-dev] all nodeids from a collected python file

2019-11-02 Thread Tibor Arpas
So my method doesn't work when Packages are involved. package.collect() returns the necessary nodes only once (it thinks the second execution encountered duplicates, so it returns empty tuple). So my gen_nodeids breaks normal collection. The bug or feature is demonstrated below. Is there a better w