Comments (3)
This project was the direct inspiration for elm-test fuzzing, so I'm confused as to how it would be "anywhere near as powerful". This library has some major disadvantages, such as the reliance on backticks that are no longer in the language, weird types and bad error messages, and the immediate execution of tests (elm-test uses functions to allow for parallelization).
We also found that it is helpful to separate the creation of randomized, shrinkable values (fuzzing) from making assertions about them -- so that the same assertions can be used in unit tests. Meanwhile, we also found it helpful to keep both functionalities in one library: rather than an awkward add-on to elm-test, fuzzers are built right in.
Do you have some examples of what you think this library can do that elm-test cannot? We are always willing to consider good ideas that could potentially be incorporated into elm-test.
from elm-check.
Fuzz has no concept of being able to permanently filter a producer, and the documentation for conditional
states that if you use an arbitrarily large amount of retries then it may blow the stack. This is very limiting and represents most of why I cannot use Fuzz for my own purposes.
If it was updated to include a true filter
then it would reach feature parity with this library.
from elm-check.
Filtering was added, and removed, because it caused infinite looping when most of the values were filtered out. See discussion here among other places. You should find a more clever way to generate the data you need without filtering the fuzzer. I've had a similar issue, and solution, with Scala-check (which does have a filter function), so the issue is not unique to Elm or elm-test: filtering an infinite stream until you have n
items is simply a bad situation best avoided.
from elm-check.
Related Issues (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 elm-check.