Skip to content

Commit fa7be69

Browse files
committed
Add fuzztesting slide GH-68
1 parent f15c225 commit fa7be69

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

lectures/15_testing.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,17 +1429,39 @@ def test_withdraw():
14291429
::::::::::::
14301430

14311431

1432-
<!-- # fuzz testing (fuzzing) -->
1432+
## fuzz testing (fuzzing)
1433+
1434+
::: {.text-larger}
1435+
testing by randomly generated inputs
1436+
:::
1437+
1438+
in contrast of property-based testing
1439+
1440+
::: {.wide-quote .mt-1}
1441+
> Fuzz testing works by throwing everything at the wall and seeing what sticks.
1442+
>
1443+
> -- Xuanyi Chew, "[Property-Based Testing](https://blog.gopheracademy.com/advent-2017/property-based-testing/)"
1444+
1445+
:::
1446+
1447+
::: {.wide-quote .mt-1}
1448+
> Fuzz testing is great at discovering unexpected inputs that expose weird behaviour.
1449+
>
1450+
> -- Jay Conrod, "[Internals of Go’s new fuzzing system](https://jayconrod.com/posts/123/internals-of-go-s-new-fuzzing-system)"
1451+
1452+
:::
1453+
1454+
fuzzing will more likely to tell that there's an issue, but not what it is
14331455

14341456
## testing is never complete
14351457

14361458
::: {.wide-quote}
14371459
> By its nature, testing is never complete.
1438-
As the influential computer scientist Edsger Dijkstra put it, **Testing shows the presence, not the absence of bugs.**
1460+
As the influential computer scientist Edsger Dijkstra put it, "**Testing shows the presence, not the absence of bugs.**"
14391461
No quantity of tests can ever prove a package free of bugs.
14401462
At best, they increase our confidence that the package works well in a wide range of important scenarios.
14411463
>
1442-
> -- Alan Donovan & Brian Kernighan, The Go Programming Language [@donovan2015go]
1464+
> -- Alan Donovan & Brian Kernighan, "The Go Programming Language" [@donovan2015go]
14431465
14441466
:::
14451467

0 commit comments

Comments
 (0)