Add new pytest_xdist_node_collection_finished hook

Fix #8
This commit is contained in:
Bruno Oliveira
2015-12-12 12:38:45 -02:00
parent 5d26154efb
commit 2ae9bd7f43
4 changed files with 78 additions and 0 deletions

View File

@@ -629,6 +629,8 @@ class DSession:
"""
if self.shuttingdown:
return
self.config.hook.pytest_xdist_node_collection_finished(node=node,
ids=ids)
# tell session which items were effectively collected otherwise
# the master node will finish the session with EXIT_NOTESTSCOLLECTED
self._session.testscollected = len(ids)