際際滷

際際滷Share a Scribd company logo
I DREAM OF GENNING 
SCALACHECK IS BLACK MAGICK 
Kelsey Gilmore-Innis (@kelseyinnis) 
+ Stew OConnor (@StewOConnor)
PROPERTY-BASED TESTING
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
BACKGROUND
I dream of Gen'ning: Scala Check is Black Magic
GENERATES  RUNS  SHRINKS
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
GENERATORS
OUT OF THE BOTTLE 
 Boolean, Byte, Char, String, Int, Double, Long 
 Throwable, Date 
 Option, Either, Tuple2-Tuple9, Function1-Function5 
 Array, List, ArrayList, Stream, Set, Map 
 alphaChar, alphaNumChar, alphaLowerChar, alphaUpperChar 
 alphaStr, numStr, identifier
EDGE CASE BIAS
I dream of Gen'ning: Scala Check is Black Magic
FANCY GENS
.choose, .oneOf, .someOf
I dream of Gen'ning: Scala Check is Black Magic
COMPOSING GENS 
map  flatMap  filter/suchThat
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
.suchThat
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
http://etorreborre.blogspot.com/2011/02/scalacheck-generator-for-json.html
FREQUENCY
I dream of Gen'ning: Scala Check is Black Magic
P1 BUG: BEYONC NOT FOUND
PERFORMANCE TESTING
ROUND-TRIP PROPERTIES
ROUND-TRIP PROPERTIES
NEGATIVE TESTING
RUNNING SCALACHECK TESTS
INTEGRATION
PARAMS
SCALACHECK + SELENIUM 
https://github.com/jessitron/js-with-scalacheck
COMMANDS
TESTING SERVER NETWORKS 
http://scalacheck.org/files/scaladays2014/index.html
SIMULATION TESTING
SHRINKING
I dream of Gen'ning: Scala Check is Black Magic
MAKING IT LOOK EASY
I dream of Gen'ning: Scala Check is Black Magic
I dream of Gen'ning: Scala Check is Black Magic
BYE!

More Related Content

I dream of Gen'ning: Scala Check is Black Magic