Skip to content

Missing collection errors in pytest-html v4 #755

@akhilramkee

Description

@akhilramkee

Thanks for the rewrite and a revamped report in the pytest-html!

I noticed that the collection errors are not reported as part of pytest-html v4 but they were reported till pytest-html==3.2.0

Reproducer:

test_sample.py

import pytest

raise ImportError("Non existent module")

Run:

pytest test_sample.py --html=~/tmp/generated_html.html

pytest-html == 3.2.0:

image

pytest-html == 4.0.3rc0:

image


Looking at the codebase, I can see that pytest_collectreport got missed out during the rewrite, so maybe adding that back should fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions