Structure and Interpretation of Test Cases
This video is also available in the GOTO Play video app! Download it to enjoy offline access to our conference videos while on the move.
Throw a line of code into many codebases and it's sure to hit one or more testing frameworks. There's no shortage of frameworks for testing, each with their particular spin and set of conventions, but that glut is not always matched by a clear vision of how to structure and use tests — a framework is a vehicle, but you still need to know how to drive.
The computer science classic, Structure and Interpretation of Computer Programs, points out that "programs must be written for people to read, and only incidentally for machines to execute". The same is true of test code.
This talk takes a deep dive into unit testing, looking at examples and counterexamples across a range of languages and frameworks, from naming to nesting, exploring the benefits of data-driven testing, the trade-offs between example-based and property-based testing, how to get the most out of the common given-when-then refrain and knowing how far to follow it.
In this talk, you'll learn:
- How to better structure unit tests
-
The Psychology of UXFabio Nudge PereiraTuesday Jun 14 @ 13:15
-
Is Software Engineering Still an Oxymoron? (live streamed)Alan KayWednesday Jun 15 @ 09:00
-
The Zen of ProgrammingSander HoogendoornMonday Jun 13 @ 13:15
-
Welcome to a New Age of RefereeingPierluigi CollinaWednesday Jun 15 @ 15:30
-
The Importance of LaughterAino Vonge CorryTuesday Jun 14 @ 17:45
-
Design for the Utopia You Want, Not the Dystopia You're InChris AthertonWednesday Jun 15 @ 13:15
-
#FAILKevlin HenneyTuesday Jun 14 @ 09:15
-
Rediscovering Humanity in TechEric JohnsonMonday Jun 13 @ 09:15
-
Agility is InefficientKlaus Bucka-LassenMonday Jun 13 @ 17:45