Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of effective test case design in this comprehensive conference talk by Kevlin Henney. Dive deep into unit testing practices, examining examples and counterexamples across various programming languages and frameworks. Learn about crucial aspects such as naming conventions, nesting strategies, and the benefits of data-driven testing. Compare example-based and property-based testing approaches, and discover how to optimize the common given-when-then structure. Gain insights into improving test code quality, documentation practices, and the relationship between test and production code. Analyze specific examples, including leap year calculations and stack implementations, to understand abstract data types and preconditions. Master the art of crafting clear, concise, and meaningful assert statements while adhering to principles reminiscent of Strunk and White's writing guidelines. Elevate your testing skills and learn to structure test cases that enhance code quality and maintainability.
Syllabus
Intro
Title
Target Audience
XUnit Test Patterns
Test Code vs Production Code
Documentation
Language
Guts
Unit Tests
Leap Year
Constructive Advice
Examples
Improvements
Naming Conventions
Propositions
Commonality
Nesting
Test Data
Multiples
Over Programming
Stacks
Abstract Data Types
Strunk and White
The assert statement
The name
Naming
Stack Specification
Preconditions
Deep Observation
Taught by
NDC Conferences