Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Structure and Interpretation of Test Cases

NDC Conferences via YouTube

Overview

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

Reviews

Start your review of Structure and Interpretation of Test Cases

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.