Contribute Media
A thank you to everyone who makes this possible: Read More

Empathetic testing: Developing with compassion and humility.

Description

Tests can be a powerful tool used to increase our development speed and empower us with the confidence to refactor and improve codebases. Writing tests with these goals in mind requires empathy and compassion toward other developers and even our future selves. Conversely, tests written with different objectives, such as achieving an arbitrary coverage score, can have the opposite effect and cause suffering.

Together, we will explore the following ideas:

  • How writing tests beforehand is an act of compassion.
  • Testing outcomes, rather than implementation choices, takes humility.
  • Empathizing with cognitive overwhelm: how isolating and minimizing test setup can make your code easier to understand and extend.
  • Do you really need that mock? Balancing the needs of now with those of the future.

This talk aims to provide valuable insights for beginners embarking on their testing journeys and challenge experienced developers to contemplate their philosophy toward testing. While a basic familiarity with testing in Django is beneficial for understanding practical examples, it is not a prerequisite.

Details

Improve this page