Рет қаралды 2,916
Generative testing (aka property testing), popularized by the Haskell library QuickCheck, is a technique of:
- specifying invariant laws your code expects to exhibit
- generating random inputs to verify the laws
- simplifying failures to find error boundaries
- providing replay mechanisms for easy debugging
In this BrooklynJS talk, I show the motivations for and basics of property testing in JavaScript, via the library fast-check. Slides are posted at
speakerdeck.com/glebec/the-ma....
----
Fullstack Academy was recently ranked the #1 coding bootcamp in the U.S. Learn more at www.fullstackacademy.com.