Comments (6)
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.
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.
@jburwell Feel free to reopen if anything comes up
from jqwik.
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.
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.
@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)
- Consider supporting @UseType for sealed interfaces HOT 8
- Shrinking of large arrays uses a very large amount of memory HOT 11
- StackOverflowError when shrinking large arrays HOT 14
- question: any way to imperatively summon a pre-configured arbitrary? HOT 15
- Make nested groups work for JDK >= 18 HOT 31
- Combinators.combine.as nullability of arguments HOT 4
- Can't figure out how to create an Arbitrary I want HOT 10
- Bug: Arbitraries.strings().uniqueChars() will sometimes shrink to values with duplicate chars HOT 5
- Bug: Uniform Distribution of Integers does not work if range is >= Integer.MAX_VALUE HOT 2
- Kotlin K2 Support HOT 24
- Time Module: Support generating java.sql.Timestamp
- adding `jqwik-kotlin` causes existing tests written in java to fail with NPE HOT 18
- Potential idea for running `SAMPLE_FIRST`/`SAMPLE_ONLY` for stateful tests HOT 2
- Lifecycle method called twice when subclassing HOT 4
- Cannot use Arbitrary.generator() outside jqwik HOT 6
- Is Arbitrary<@Nullable T> correct/intended under JSpecify semantics? HOT 32
- TypeUsage example from user guide fails in 1.8.x HOT 8
- Right Way to Integrate jqwik with DataFaker HOT 23
- Generic @Provide methods are sensitive to the type variables' names HOT 3
- Allowing Sampling of Arbitraries with Injected Seed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqwik.