GithubHelp home page GithubHelp logo

Comments (4)

theramis avatar theramis commented on June 6, 2024 1

@viceice I was thinking about implementing recently and realised that if I wanted to do something like what you suggested above, it would be super difficult.

Idea for NUnit with update snapshots:

  • on startup find all snapshots
  • on test track used snapshots
  • on shutdown compare and delete old snapshots

I think this should be easy to implement as an extension

For the above idea to work the test run would have to be running all the tests. What should happen if the user provides a filter and only runs one test? Is there a way to find out if the user is running the full test suite?

The only solution I can think of is that I either need to go deep into the implementations of Xunit and Nunit and replicate the logic to determine all possible tests so that I can determine which snapshots should exist or not.

from snapper.

viceice avatar viceice commented on June 6, 2024

Idea for NUnit with update snapshots:

  • on startup find all snapshots
  • on test track used snapshots
  • on shutdown compare and delete old snapshots

I think this should be easy to implement as an extension

from snapper.

viceice avatar viceice commented on June 6, 2024

Alternative we can told the user to add a global startup and teardown hook for snapper

from snapper.

viceice avatar viceice commented on June 6, 2024

Ok, that looks really framework dependent. 🤔 May be we can simply delete all snapshots if update is active? But for that, we need a possibillity to detect partial test runs too.

At least in nunit this should be possible. I don't know xunit very much.

from snapper.

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.