๐ Tired of continuous testing? The concept of property-based testing promises relief: the test framework automatically covers all boundary and non-boundary cases.
๐กCurious about how it works? Check out @lars latest article. #TypeScript #fastcheck
https://www.innoq.com/en/articles/2023/04/testing-fast-check/
People often wonder if #PropertyBased #Testing is really applicable. I started a demo example showing how to leverage #FastCheck against exercises coming from Cracking the Coding Interview in #JavaScript at https://github.com/dubzzz/cracking-pbt
More demos to come (race conditions..)
#propertybased #testing #fastcheck #javascript
That is the library, by the way. A JavaScript port of Haskell's QuickCheck. Highly recommended:
#fastcheck #quickcheck #javascript
#AdventOfPBT #Day5 ๐ ๐
Wanna try #PropertyBasedTesting with #FastCheck? Everything is ready for you on codesandbox! https://codesandbox.io/s/advent-of-pbt-day-5-6ekxo?file=/src/index.spec.ts&previewwindow=tests
๐ก Tip: With Property Based, try to think out of the box. Don't try to generate the precise inputs expected by your functions but some data making you able to generate ins and outs at the same time. Or at least know a bit on the outs.
๐ Today's topic: respace
๐ฅ Answer tonight!
More details: https://dev.to/dubzzz/advent-of-pbt-2021-day-5-3227
#adventofpbt #day5 #propertybasedtesting #fastcheck