|
|
Erlang eXchange 2008: John Hughes & Thomas Arts on Quick Check Tutorial: Using QuickCheck to Test Erlang Programs
Quick Check Tutorial: Using QuickCheck to Test Erlang Programs
Testing is a major part of all software development—yet no matter how much effort is spent on it, some errors always seem to slip through. Cases which no‐one thought to test crash systems late in development or out in the field, revealing errors which cost time and money to analyze, diagnose, and fix. In the worst case, such errors reveal fundamental flaws which force a redesign of part of the system, at disproportionate cost.
QuickCheck is an automated testing tool which addresses these problems by generating test cases from a concise specification (so that many more cases can be tested), and simplifying failing cases to a minimal example on a test failure (so that fault diagnosis is quick and easy). QuickCheck enables developers to dramatically improve test coverage, and find obscure errors at an earlier stage, lowering costs and improving quality as a result.
In this tutorial, John Hughes and Thomas Arts will use examples to show how developers write QuickCheck specifications—which are actually Erlang programs using the QuickCheck API—and use them to test code written in Erlang or other programming languages. We will show how QuickCheck’s shrinking finds tiny examples that provoke errors, making the step from observing a bug to diagnosing it very short indeed, and we will show how property driven development can produce code that is solid from the word go.
Download the slides here
ABOUT JOHN HUGHES
|
John Hughes is co-founder and CEO of Quviq AB, and the originator of Quviq QuickCheck, which is written in Erlang. He was also deeply involved with the design of Haskell from the start, and co-chaired the committee that defined the current language s
More about John Hughes
|
ABOUT THOMAS ARTS
|
Dr. Thomas Arts is the co-founder and CTO of Quviq, a small company that produced Quick Check, as testing tool for Erlang.
More about Thomas Arts
|
|
PODCAST QUICK CHECK TUTORIAL: USING QUICKCHECK TO TEST ERLANG PROGRAMS
|
|
|
|
OTHER ERLANG EVENTS
|
Erlang Introduction
1 DAY COURSE. London, Monday, January 19th
|
|
Erlang By Example
5 DAY COURSE. London, Monday, January 26th
|
|
Erlang Open Telecom Platform
5 DAY COURSE. London, Monday, February 9th
|
|
Caring About Code Quality
FREE EVENT:
In The Brain of Venkat Subramaniam
London, Thursday, February 12th
|
|
Pragmatic Thinking & Learning
1 DAY COURSE. Featuring Andy Hunt London, Monday, March 16th
|
|
OTP Express (Advanced)
3 DAY COURSE. London, Monday, June 1st
|
|
Erlang Express (Beginners)
3 DAY COURSE. London, Monday, June 1st
|
|
Pragmatic Thinking & Learning
1 DAY COURSE. Featuring Andy Hunt London, Monday, June 15th
|
|
|
|