-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
What's the problem this feature will solve?
When parsing pytest report (in my case --reportlog file) TestReport objects only contain duration information. I'm missing start and stop timestamps to be able to correlate test results with external events.
Describe the solution you'd like
TestReport objects should have .start and .stop attributes set, which can easily be copied from CallInfo objects in TestReport.from_item_and_call
Alternative Solutions
I considered adding it to pytest-reportlog here - pytest-dev/pytest-reportlog#22, but we agreed that core pytest is a better place for such change.
Additional context
Initial feature request in pytest-reportlog - pytest-dev/pytest-reportlog#19
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch