Property-based State Machine Testing • Andrew McCluskey • YOW! 2018
This presentation was recorded at YOW! 2018. #GOTOcon #YOW
Andrew McCluskey - Functional Programming Engineer at Data61
ABSTRACT
Automated testing is key to ensuring the ongoing health and well being of any software project, giving developers and users confidence that their software works as intended. Property based testing is a significant step forward compared to traditional unit tests, exercising code with randomly generated inputs to ensure that key properties hold
However, both of these techniques tend to be used at the level of individual functions. Many important properties of an application only appear at a higher level, and depend on the state of the application under test. The Haskell library hedgehog, a relative newcomer to the property based testing world, includes facilities for property-based state machine testing, giving developers a foundation on which to build these more complicated tests.
In this talk, Andrew will give you an introduction to state machine property testing using ’ll start with a quick refresher on property based testing, followed by a brief introduction to state machines and the sorts of applications they can be used to model. From there, he’ll take you on a guided tour of hedgehog’s state machine testing facilities.
Finally, Andrew will present a series of examples to show off what you can do and hopefully give you enough ideas to start applying this tool to your own projects. The application being tested will be a servant web application, and examples will include testing fundamentals such as content creation and deletion, uniqueness constraints, and authentication.
An intermediate knowledge of Haskell and familiarity with property based testing will be beneficial, but not essential. The slides and demo application will be available after the talk for people to study in detail. [...]
RECOMMENDED BOOKS
Vitaly Bragilevsky • Haskell in Depth •
Rebecca Skinner • Effective Haskell •
Graham Hutton • Programming in Haskell •
John Whitington • Haskell from the Very Beginning •
Gregor Hohpe • The Software Architect Elevator •
Henney & Monson-Haefel • 97 Things Every Software Architect Should Know •
Matthew Skelton & Manuel Pais • Team Topologies •
Forsgren, Humble & Kim • Accelerate: The Science of Lean Software and DevOps •
#Haskell #HaskellProgramming #StatMachineTesting #PropertyTesting #PropertyBasedTesting #Testing #ProgrammingLanguage #FunctionalProgramming #AndrewMcCluskey #Data61 #YOWcon
Looking for a unique learning experience?
Attend the next GOTO conference near you! Get your ticket at
Sign up for updates and specials at
SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily.
1 view
0
0
1 month ago 01:41:07 1
Mid 90’s Atmospheric Jungle & DnB Mix on Vinyl. [Moai Beats] DJ Neurosis インテリジェントなドラムンベース
2 months ago 00:02:15 1
V International Banking Forum
2 months ago 00:49:49 1
Mind Control & Time Travel STRANGER THINGS Inspiration! Abandoned Camp Hero - Montauk Project
2 months ago 00:03:14 1
Grand Theft Auto 5 - Mountain Yoga (GTA 5 Walkthrough Part 142)