Skip to content

Repeating a test causes file not found regression error #200

Description

@akaszynski

When repeating a test using a flaky test fixture within PyVista, the incremented test run resulted in pytest-pyvista being unable to find the image in the cache:

from https://github.com/pyvista/pyvista/actions/runs/17310223268/job/49142681675?pr=7832

FAILED tests/plotting/test_plotting.py::test_box_axes - pytest_pyvista.pytest_pyvista.RegressionFileNotFoundError: tests/plotting/image_cache/box_axes_1.png does not exist in image cache
= 1 failed, 1727 passed, 27 skipped, 2 xfailed, 5 warnings in 1609.45s (0:26:49) =
py3.10-numpy_1.26-vtk_9.2.2-cov-plotting: exit 1 (1615.59 seconds) /home/runner/_work/pyvista/pyvista> pytest tests/plotting --disallow_unused_cache --cov pyvista --cov-config /home/runner/_work/pyvista/pyvista/pyproject.toml --cov-context test --cov-report term:skip-covered --cov-report xml:coverage_py3.10-numpy_1.26-vtk_9.2.2-cov-plotting.xml --cov-report html:coverage_py3.10-numpy_1.26-vtk_9.2.2-cov-plotting pid=30205

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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