bkkhack / hacknights

A meta-repository for finding hack night birds-of-a-feather and tracking what we learn.
https://waffle.io/bkkhack/hacknights
15 stars 4 forks source link

Use JsVerify to test react components #176

Closed aljones15 closed 7 years ago

aljones15 commented 7 years ago

Property based testing sounds cool so going to sit down and try to get some fluency with JsVerify constructing props for react components etc.

cbrunnkvist commented 7 years ago

Intriguing. I just read the entire page http://jsverify.github.io/#jsverify and I don't understand at all how it is supposed to work.

Perhaps a PR for the README would be my first contrib ;-)

aljones15 commented 7 years ago

yeah property based testing frameworks are terribly obfuscated I've found, but basically you specify the type for the paramaters to a function and it then produces over 100 randomized unit tests for the function.