Skip to main content

2 posts tagged with "entityGraph"

View All Tags

What's new in fast-check 4.9.0?

· 13 min read
Nicolas Dubien
fast-check maintainer

Supporting shrink is crucial for the built-in arbitraries in fast-check. For this release, we deeply reworked entityGraph to give it built-in shrinking support. But this release is above all about performance. We spent the last few weeks tracking any optimization that we could put into fast-check on its critical and hot code paths.

Continue reading to explore the detailed updates it brings.

What's new in fast-check 4.5.0?

· 8 min read
Nicolas Dubien
fast-check maintainer

Relational structures are among the hardest kinds of data to generate. Not only do entities need to be well-defined, but their links must also point to existing entities while satisfying a set of constraints. This release introduces a built-in helper that lets you describe your schema to generate properly linked relational data from it.

With this release, we aim to go beyond simple unit-level data and offer primitives to build significantly more complex inputs. This should make it easier to extend your usage of property-based testing further. Why not trying it against higher-level algorithms?

Continue reading to explore the detailed updates it brings.