Giter Club home page Giter Club logo

Comments (6)

jlink avatar jlink commented on July 20, 2024 1

At least that’s what I do. If you put it into VC on failing tests, you’ll sometimes be able to create the same failing values where you checkout the code. But that’s rarely what you want.

from jqwik.

jlink avatar jlink commented on July 20, 2024

In theory you never have to delete it, it should be robust enough to recover from potential error scenarios. That said, you can create different behaviour by (not) deleting it: If you delete it during Maven clean jqwik will create new random seeds for failed properties. That means that after a property fails you cannot be sure it will fail in the next run since the generated sample data will most probably be different. If you only use mvn clean in CI runs this might be an option.

I personally never delete it - except when I work on a feature related to it. Have you had any problems that you think are related to an old .jqwik-database?

from jqwik.

jlink avatar jlink commented on July 20, 2024

@jburwell Feel free to reopen if anything comes up

from jqwik.

jburwell avatar jburwell commented on July 20, 2024

In theory you never have to delete it, it should be robust enough to recover from potential error scenarios. That said, you can create different behaviour by (not) deleting it: If you delete it during Maven clean jqwik will create new random seeds for failed properties. That means that after a property fails you cannot be sure it will fail in the next run since the generated sample data will most probably be different. If you only use mvn clean in CI runs this might be an option.

I personally never delete it - except when I work on a feature related to it. Have you had any problems that you think are related to an old .jqwik-database?

Yes. When we upgraded from 0.9.x to 1.1.6, our test suite mysteriously failed. Deleting jqwik-database and re-executing the test suite fixed the problem. This solution caused me wonder how it is intended to be managed, Currently, we ignore it from source control. Do you check it in?

from jqwik.

jlink avatar jlink commented on July 20, 2024

Checking it in doesn’t make sense IMO since it will be recreated on each test run.

If you run into a migration problem again I’d be interested in the details.

from jqwik.

gerardoepitacio avatar gerardoepitacio commented on July 20, 2024

@jlink I think my question is related to this topic, since you mention that "it will be recreated on each test run", it's safe to set this file in the .gitignore file to avoid track it with git?

from jqwik.

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.