Skip to content

Export the obtained file paths #182

@azmeuk

Description

@azmeuk

I am using pytest-regressions in CI workflows like GHA, mostly with pictures.
Often times, tests run well locally but fail in the CI environment, however GHA does not allow to display pictures to see what is wrong.
A solution is to use the upload-artifact action to make the faulty pictures downloadable.

Achieving this is not straightforward: the pytest output should be exported, then parsed in search of the .obtained pattern, then passed to upload-artifact.

It would be awesome if pytest-regression would implement an option to automate this in pytest.
For example, a --export-regressed-file-paths=/path/to/something.txt and write the paths inside.

What do you think?

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