Who's using fast-check? 🤔 #1540
Replies: 6 comments 1 reply
-
[Individual] I try out fast-check in my free time and want to propose its use in my working place when I feel confident enough to present it. My hope is that it catches bugs in web applications with complex business logic that otherwise would slip through (pretty much the vanilla use case). |
Beta Was this translation helpful? Give feedback.
-
[Company] At Pigment (website/GitHub), we use it on all our Pull Requests. It has been introduced quite early in our testing stack and was able to detect problems before we released features to production. It has been useful on various parts of our front (in React): from core algorithms, to invariants on components, but also in things like detection of race conditions. Here are some examples of our usages:
Setup:
Did it find bugs?: |
Beta Was this translation helpful? Give feedback.
-
[Company] We use fast-check At Myre (website). Especially in our shared engine repository which have abstract/core algorithms and common interfaces/helpers between backends & frontends (all full typescript). To not impact the developer experience, we have separated stages of example based testing (less than 5 sec) and property based testing (~35 sec). Our CI runs both on every pull request on this repo. It helps us to early detect edge cases and bullet proof some complex features. On top of that, we also reuse generated arbitraries to do test fuzzing on our APIs. |
Beta Was this translation helpful? Give feedback.
-
I've introduced it to @inrupt/solid-client. The primary use case is for code related to access control, to try to detect situations in which we might cause privilege escalation. It helped us detect and cover a couple of edge cases! |
Beta Was this translation helpful? Give feedback.
-
Using it for a couple of unit tests at work, but I haven't attempted to use it for react component tests... We use storybook and storybook-test for most of our UI-based interaction tests and I haven't sorted out how to integrate fast-check into that setup v.s. just using minifaker to generate data for our tests, and asserting that a form completes or errors with the right values... It's hard to think how you can do more than unit test with fast-check honestly |
Beta Was this translation helpful? Give feedback.
-
I work for a machine translation company called DeepL. The main product is two text boxes where users can translate free text into different languages. There is a lot of complicated stuff going on in these innocent looking text boxes (in the frontend alone), in particular because users can edit both the source text and the translated text, and the fuzzy relationship between the two must constantly be maintained. I use fast-check extensively to hunt down edge cases there. And I think together with the type checker it's really the strongest verification tool (that is still ergonomic) in the entire ecosystem. |
Beta Was this translation helpful? Give feedback.
-
As maintainer of fast-check I would be really interested to know who — individuals, companies or open source projects — is using fast-check? For which needs? And eventually the benefits of using it?
Beta Was this translation helpful? Give feedback.
All reactions