GithubHelp home page GithubHelp logo

Comments (4)

MatthewFlamm avatar MatthewFlamm commented on August 18, 2024 1

Another option is to save all image files during a test to a folder (default to a temporary folder). Then you could upload this to an artifact in CI. This would lead to larger artifacts, but also has other advantages, for example being able to inspect for false negatives. I don't have a feeling one way or the other.

from pytest-pyvista.

MatthewFlamm avatar MatthewFlamm commented on August 18, 2024 1

To expand upon this: I think we should have two configurable directories. 1) the stored image cache, 2) the generated images for a single run.

  1. stored image cache. Can there be a universal way to set this? It should be related to the testing code, which could be hierarchical, so tricky to access here. If it is required to be explicitly set by the user, we should check that this is done, or raise an error.
  2. generated images. This could be in the shared appdirs by default.

It would also be great in the future to allow for an optional check that all the files in the cache dir have a corresponding file in generated dir, and vice versa. This would ensure that everything is working as expected during testing.

from pytest-pyvista.

banesullivan avatar banesullivan commented on August 18, 2024

I am doing this in pyvista/pyvista#3609 which would need to migrate here

from pytest-pyvista.

banesullivan avatar banesullivan commented on August 18, 2024

Good point. I'd rather this be to save all produced images, not just failing ones

from pytest-pyvista.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.