PyCon Israel 2024

10 Ways To Shoot Yourself In The Foot With Tests
09-16, 16:30–16:50 (Asia/Jerusalem), Hall 7
Language: עברית

Tests can be great, but sometimes they're really not.
Getting it right can be tricky, and even when there are problems - it can be hard to know why.
We'll see how to avoid some common expensive mistakes, and how this can look in the Python ecosystem.


Almost every developer who’s worked with tests has encountered a test suite that caused a lot of pain.

Some of them just don’t protect us when we need them, some are flaky, some keep breaking because of unrelated changes, some take hours to debug whenever they fail.

And while every company is different, there are definitely patterns.
Many problems are the result of some common pitfalls that trap many teams.
These pitfalls might be common, but they're not easy to spot - small differences in test implementation can dramatically affect the result, and I’ve seen all of them happen in strong, capable, experienced teams. Most of these I fell into myself at least once.

In this session, we'll take a look at a selection of problematic testing choices, with examples that show these in the context of common Python frameworks and libraries. We'll discuss how to identify them, what problems they might cause and what alternatives we have so we can save ourselves the pain.


Expected experience level of participants

Basic

Target audience

Developers

Other (target audience)

Testers / QA

Making software with humans and for humans for close to 20 years, doing diverse stuff from algo research and AI to management.
Relentless question asker, problem solver and maker of high-quality software.