We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78c2dcf + b44b935 commit b0ed64dCopy full SHA for b0ed64d
1 file changed
src/pytest_tap/plugin.py
@@ -37,14 +37,16 @@ def pytest_runtestloop(self, session):
37
"""Output the plan line first."""
38
option = session.config.option
39
if (option.tap_stream or option.tap_combined) and not (
40
- session.config.pluginmanager.has_plugin("subtests")):
+ session.config.pluginmanager.has_plugin("subtests")
41
+ ):
42
self._tracker.set_plan(session.testscollected)
43
44
@pytest.hookimpl(optionalhook=True)
45
def pytest_xdist_node_collection_finished(self, node, ids):
46
"""Output the plan line first when using xdist."""
47
if (self._tracker.streaming or self._tracker.combined) and not (
- node.config.pluginmanager.has_plugin("subtests")):
48
+ node.config.pluginmanager.has_plugin("subtests")
49
50
self._tracker.set_plan(len(ids))
51
52
@pytest.hookimpl()
0 commit comments