MCPcopy Create free account
hub / github.com/pytest-dev/pytest-bdd / duration

Method duration

src/pytest_bdd/reporting.py:61–70  ·  view source on GitHub ↗

Step execution duration. :return: Step execution duration. :rtype: float

(self)

Source from the content-addressed store, hash-verified

59
60 @property
61 def duration(self) -> float:
62 """Step execution duration.
63
64 :return: Step execution duration.
65 :rtype: float
66 """
67 if self.stopped is None:
68 return 0
69
70 return self.stopped - self.started
71
72
73class ScenarioReport:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected