Session Result¤
SessionResult
dataclass
¤
SessionResult(
session_id: str,
start_timestamp: str,
stop_timestamp: str,
python: PythonDistribution,
pytest_version: str,
plugin_version: str,
exit_status: int,
errors: List[ErrorMessage],
warnings: List[WarningMessage],
collect_reports: List[CollectReport],
test_reports: List[TestCaseReport],
project: Optional[Project] = None,
)
Result of a pytest session, including collect reports and test reports.
collect_reports
instance-attribute
¤
collect_reports: List[CollectReport]
Collect reports generated during the session.
exit_status
instance-attribute
¤
exit_status: int
The exit status of the pytest run. 0 indicates success, non-zero indicates failure.
plugin_version
instance-attribute
¤
plugin_version: str
The version of the plugin that generated the report.
project
class-attribute
instance-attribute
¤
project: Optional[Project] = None
The project that is being tested.
pytest_version
instance-attribute
¤
pytest_version: str
The version of pytest that generated the report.
start_timestamp
instance-attribute
¤
start_timestamp: str
The start time of the pytest session in ISO 8601 format.
stop_timestamp
instance-attribute
¤
stop_timestamp: str
The stop time of the pytest session in ISO 8601 format.
test_reports
instance-attribute
¤
test_reports: List[TestCaseReport]
Test reports generated during the session.