Skip to content

Pytest doctests appear to not be captured #40

@shepherdjay

Description

@shepherdjay

Example job here -- https://github.com/shepherdjay/advent_of_code/actions/runs/12182889612/job/33983005591

When running pytest alone the pytest.ini is setup to collect doctests. ie. running python -m pytest -q --collect-only in the repo with no other arguments results in 135 tests collected.

However when ATS action runs it it appears to not utilize the pytest.ini file included and so doctests are not collected. The result is only 120 tests collected. As a result even if ATS suggests running all tests it is missing 15 tests in this example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions