Structure and Interpretation of Test Cases • Kevlin Henney • GOTO 2022
This presentation was recorded at GOTO Amsterdam 2022. #GOTOcon #GOTOams
Kevlin Henney - Independent Consultant, Speaker, Writer & Trainer
ABSTRACT
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. [...]
TIMECODES
00:00 Intro
04:09 Quote Structure & Interpretation of Computer Programs
05:27 Quotes Marit van Dijk
10:56 Testing approaches today
13:24 Continuous testing
14:52 Case: Leap year
28:55 Quote Nat Pryce & Steve Freeman
29:44 Case: Leap year continued
37:33 FizzBuzz
39:00 Quote Brian Marick
39:36 FizzBuzz continued
43:15 Quote Richard Feynman
43:43 FizzBuzz continued
45:14 Niklaus Wirth
46:07 Outro
Download slides and read the full abstract here:
RECOMMENDED BOOKS
Kevlin Henney & Trisha Gee • 97 Things Every Java Programmer Should Know •
Kevlin Henney • 97 Things Every Programmer Should Know •
Henney & Monson-Haefel • 97 Things Every Software Architect Should Know •
Abelson, Sussman & Sussman • Structure and Interpretation of Computer Programs •
Niklaus Wirth • Algorithms Data Structures = Programs •
Roy Osherove • The Art of Unit Testing •
Adzic, Evans & Roden • Fifty Quick Ideas To Improve Your Tests •
Adzic, Evans & Korac • Fifty Quick Ideas to Improve Your User Stories •
Saleem Siddiqui • Learning Test-Driven Development •
Kent Beck • Test Driven Development •
#Testing #UnitTests #UnitTesting #Programming #KevlinHenney #SoftwareEngineering #TDD #TestDrivenDevelopment #ContinuousTesting #Integers #Coverage #LeapYear #LeapYearRule #NiklausWirth
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
6 days ago 00:10:44 1
Structures Recently Found Inside Earth’s Mantle Shouldn’t Exist
3 weeks ago 00:10:00 1
Yildiz: Alive Free Energy Inventor Magnet Infinity Motor Powers Homes for Free!
3 weeks ago 00:22:23 1
Structures Burn as Palisades Fire Explodes to 1,200+ Acres
3 weeks ago 01:28:19 29
The New BEST cEDH Decks | Learning cEDH Episode 32
3 weeks ago 00:03:10 1
Elden Ring Nightreign - Official Gameplay Reveal Trailer | The Game Awards 2024
3 weeks ago 00:08:24 1
Learn Chinese for Beginners | Nationalities in Chinese | Country Names in Chinese
3 weeks ago 00:14:26 1
Daily Contour/Sculpting Gua Sha - Follow Along Tutorial
3 weeks ago 00:36:25 1
Powerful Energy Waves have begun Initiating Our Psychic Gifts and Spiritual Mastery
3 weeks ago 00:31:51 11
EXPERIENCE the REAL Moscow in Red Square 4K
4 weeks ago 00:53:03 1
BIGFOOT DOCUMENTARY | ALONE Overnight by TREE STRUCTURES of Nordegg | 3 Days in ALBERTA
4 weeks ago 00:30:24 1
Abandoned Sugar Mill & Creepy Haunted House | What Should Never Be!!!!
4 weeks ago 00:44:46 1
Conspiracies Unveiled: The Strange and Bizarre
1 month ago 00:03:44 1
Official Trailer for Cobblemon 1.6 - Record, Catch Update
1 month ago 01:00:00 2
Icecrown Citadel - Music & Ambience - World of Warcraft
1 month ago 00:05:10 1
How to Invest in Presale Crypto and Maximize Your Profits!