Better HN
topnewbestaskshowjobs
Log inSign up

dubzzz

7 karma · joined Feb 2, 2018 (8y ago) · 37 submissions

Submissions

1.

Beyond Flaky Tests – Bringing Controlled Randomness to Vitest(fast-check.dev ↗)

1 points · by dubzzz · 1y ago · discuss

comment 3y ago · link · parent

Discover the most important concepts of Property Based and level up your JavaScript testing skills in just 5 minutes with this beginner-friendly tutorial.

comment 4y ago · link · parent

With Jest 29.2.0 and @fats-check/jest 1.3.0, the integration of Jest and fast-check has never been so easy. This article summarized the recommended approach to integrate together.

comment 5y ago · link · parent

[I'm the author of fast-check] Here are some of the benefits that you won't have in jsverify and that pushed me to create fast-check:

- oneof can shrink

- map does not need unmap to be passed to be able to shrink

- can find bug (see bias in the doc) - in this example jsverify will not find any bugs: jsc.assert(jsc.forall(jsc.integer(),n => Math.abs(n) <= 50))*

- replay of previous runs based on seed + path

- race conditions detection

- model based testing

*The reason why it does not find the bug is that by default it will always generate small values. If you ask for jsc.integer(0, 1000000) then the test jsc.assert(jsc.forall(jsc.integer(0, 1000000),n => Math.abs(n) > 50)) will always be green too. Not with fast-check, it will find the issue for both cases.

5.

Don't write tests, let the computer write them(medium.com ↗)

12 points · by dubzzz · 7y ago · discuss

6.

Property based testing: from theory to practice(medium.com ↗)

2 points · by dubzzz · 8y ago · discuss

7.

Property Based for JavaScript: Fast-Check – Official Website(dubzzz.github.io ↗)

4 points · by dubzzz · 8y ago · discuss

8.

Ava-fast-check: Property based testing support for AVA, based on fast-check(github.com ↗)

1 points · by dubzzz · 8y ago · discuss

9.

Getting started with property based testing using fast-check(github.com ↗)

1 points · by dubzzz · 8y ago · discuss

10.

fast-check 1.2.0 adds support for chained generators(github.com ↗)

5 points · by dubzzz · 8y ago · discuss

11.

Tips to easily find properties for Property Based testing frameworks(medium.com ↗)

2 points · by dubzzz · 8y ago · discuss

12.

Fast-check 1.0.1 released – feedbacks welcome(github.com ↗)

5 points · by dubzzz · 8y ago · discuss

12