$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lunch & Learn - Property Based Testing
Search
Mickael Metesreau
December 21, 2016
Programming
0
61
Lunch & Learn - Property Based Testing
Mickael Metesreau
December 21, 2016
Tweet
Share
More Decks by Mickael Metesreau
See All by Mickael Metesreau
Fear the Ponies
mmetesreau
0
160
Alt.Net Talks - Make type system great again
mmetesreau
0
90
Alt.Net Talks - The Actor Model
mmetesreau
0
52
Betclic Dojo - Where is Fluffy?
mmetesreau
0
75
Mini training - EventStore
mmetesreau
0
69
Alt.Net Talks - EdgeJs
mmetesreau
0
300
Betclic Dojo - Extreme Carpaccio
mmetesreau
0
130
Betclic Dojo - Game of life
mmetesreau
0
41
Mini training - Containerization and Docker
mmetesreau
0
440
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
320
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
190
チームをチームにするEM
hitode909
0
370
Developing static sites with Ruby
okuramasafumi
0
320
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
0
170
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.3k
ゆくKotlin くるRust
exoego
1
160
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
140
Java 25, Nuevas características
czelabueno
0
110
AtCoder Conference 2025
shindannin
0
110
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
130
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
160
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
390
Abbi's Birthday
coloredviolet
0
3.7k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
73
Code Reviewing Like a Champion
maltzj
527
40k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
190
Done Done
chrislema
186
16k
Optimizing for Happiness
mojombo
379
70k
The Curse of the Amulet
leimatthew05
0
4.7k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
30
The Pragmatic Product Professional
lauravandoore
37
7.1k
Leo the Paperboy
mayatellez
0
1.3k
Transcript
Lunch & Learn Property based Testing
What is a Property? Something always true in a given
context
Could be Strong The total is the sum of the
elements The answer is always 42 …
But most of the time, it’s weak The appointment is
always in the future The invoice is never negative …
A test only validate one specific case
Wait, we also have parameterized tests
Yes but we go further with random generators
Let me introduce FsCheck A port of Haskell’s Quickcheck for
.NET
Generator: easily generates a number of random values for many
types Shrinker: tries to find the mininal counter example that still fails the property
None
Property based testing don’t replace unit testing
Property based testing test a lot of random cases cheaply
Random??? So what does green mean? Testing show the presence,
not the absence of bug E. W. Dijktra
Finding good properties is hard
But it is worth to think about general properties of
your business
Thanks QuickCheck: A Lightweight Tool for Random Testing of Haskell
Programs http://www.cs.tufts.edu/~nr/cs257/archive/john-hughes/quick.pdf An introduction to property-based testing http://fsharpforfunandprofit.com/posts/property-based-testing/ FsCheck https://fscheck.github.io/FsCheck/