Skip to content

Test Case Report¤

TestCaseReport dataclass ¤

TestCaseReport(
    node_id: str,
    outcome: Outcome,
    duration: float,
    setup: TestCaseSetup,
    teardown: TestCaseTeardown,
    finished: TestCaseFinished,
    call: Optional[TestCaseCall] = None,
)

Report for a single test case.

call class-attribute instance-attribute ¤

call: Optional[TestCaseCall] = None

Call step of the test case (optional).

duration instance-attribute ¤

duration: float

Duration of the test case in seconds (including setup and teardown).

finished instance-attribute ¤

finished: TestCaseFinished

View of the test case after it has finished.

node_id instance-attribute ¤

node_id: str

The node ID of the test case.

outcome instance-attribute ¤

outcome: Outcome

Outcome of the test case.

setup instance-attribute ¤

Setup step of the test case.

teardown instance-attribute ¤

teardown: TestCaseTeardown

Teardown step of the test case.