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
└── ...
We ought to allow for a mechanism to automatically create a directory called
validation_imagesadjacent to the current module being tested. This would help better organize the image cache in large projectsI'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: