Nerdeyse her dilde var artık ya. Python'da Hypothesis, C 'da RapidCheck, Js için JSVerify/fast-check. The more types the better tabii :D işi kolaylaştırıyor bayağı
Seeking an ADVANCED TYPE LEVEL #TypeScript/#Reactjs programmer. JSVerify experience is a must. Strong functional programming and math skills preferred. You will be pushing correctness to the limit. Please reach out.
On JavaScript side, JSVerify was not so bad but it lacked of maintenance. The quality of the generated values was OK but not pushing enough into corner cases IMO...
...Thus I wrote fast-check 🙈
#PropertyBased seems to be more and more attractive in the #JavaScript world. Both fast-check and jsverify barely doubled their downloads in 6 months 😅
Thank you for not using jsverify as the example...
Their API docs seem to be mainly just "learn haskell and quickcheck, figure the rest out for yourself".
fast-check is sooooooo much better
Yeah qcheck is currently targeting native, there is also github.com/Risto-Stevcev/bs-… which is a binding to JsVerify
Although qcheck is pretty portable, someone could fairly easily wrap it up in a BuckleScript project and publish to npm.
You may want to try to do some kind of property based testing (see fast-check or jsverify) where you check that the product of factors is always equal to the original number. You may also check that calling your function on those factors is always the factor itself
Месяца два назад открыл для себя библиотеку QuickCheck на Haskell, которая реализует подход property-based тестирования. А на текущем @holyjs, показали аналоги в JS: fast-check и jsverify. Про property-based testing (tiny.cc/c1od8y)
Right now I'm researching model-based testing (which is what you should use for UI testing), but I've seen JSVerify (jsverify.github.io/) used for PBT. DM me if you want to read an article draft I have on this.
Vanavond hosten we @UtrechtJS! Andrea Giugliano vertelt meer over 'Functional abstractions in #JavaScript: checking laws with #JSverify'. En Steven Thonus gaat ons straks meer vertellen over 'ClojureScript Web App on Node.js and the Browser'.
Aww yesss! We did a test run with our next speaker this week, and this'll be a real in-depth presentation about JavaScript, JSVerify, and hardcore functional programming constructs! 🤓
Still a few spots left, hosted by the lovely folks of @InspireNL! meetup.com/Utrecht-JavaScrip…
Property based testing is very powerful.
It will generate random data set for the functions you want to test.
Great to discovers edge cases you haven't thought of.
Totally worth give it a try!
For JS people, check jsverify out
github.com/jsverify/jsverify