• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What we talk about when we talk about unit testing

 
Marshal
Posts: 4499
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting video from Kevlin Henney on his views and opinions on software testing.

 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just from watching the first few minutes, I'm going to guess this is about the conversation that goes on when you're unit testing with at least one other person.

I'm hoping his message resonates with what I've been telling people: it's about the conversation you have, it's about the story we're trying to tell with the code and everybody getting on the same page about what that story is. It's about you and I telling the same story to each other and agreeing, then looking at the code and making sure the code tells the same story. It's about making sure that the code can communicate the same story to whoever (or is it whomever?) comes across this code and needs to know what that story is.

Edit #1: At the 20 minute mark, it's clear that his intent for the presentation is something different from what I was hoping. Still interesting points though and many of the quotes I have also used before around different kinds of discussion.

Edit #2: At the 55 minute mark, it's actually now started to run along the same lines that I initially thought it would. He makes a great point about the style of naming, that the names should make definite assertions.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic