Skip to content

Dynamically set the validation image directory #186

Description

@banesullivan

We ought to allow for a mechanism to automatically create a directory called validation_images adjacent to the current module being tested. This would help better organize the image cache in large projects

I'm currently working on an internal project with 100s (approaching 1000) validation images. This is spread across ~20 different sub-packages each with their own tests/ directory. Rather than having one global validation image directory, I'd like to organize images so that they are adjacent to the module being tested.

I think we could configure the pytest-pyvista fixture to automatically determine that path based on the current module and set up that directory.

My ideal structure would be:

package/
├── module_a/
│   ├── ...
│   └── tests/
│       ├── validation_images/
│       │   └── image_a.png
│       └── test_module_a.py
├── module_b/
│   ├── ...
│   └── tests/
│       ├── validation_images/
│       │   └── image_b.png
│       └── test_module_b.py
└── ...

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