Jens Happe
Write tests you love, not hate
#1about 9 minutes
Identifying the common pains of software testing
Traditional testing approaches often lead to excessive boilerplate code, fragile tests that break on refactoring, and slow execution times that disrupt developer flow.
#2about 5 minutes
Improving test readability with the given-when-then pattern
Structuring tests using the given-when-then pattern and explicit constants makes the setup, action, and verification steps clear and easy to follow.
#3about 8 minutes
Reducing boilerplate with entity builders and trainers
The entity builder pattern simplifies test data creation, while trainer classes encapsulate the configuration of mock objects to reduce repetitive setup code.
#4about 12 minutes
Decoupling tests from implementation details
Avoid fragile tests by testing broader use cases instead of individual classes, which allows for refactoring the implementation without breaking the tests.
#5about 4 minutes
How to speed up slow test execution
Isolate tests from slow external dependencies like databases and frameworks by using clean architecture principles to focus on testing core logic.
#6about 2 minutes
The evolution of testing practices at Chrono24
A look at how Chrono24 moved from minimal automated testing to a sophisticated system with thousands of fast, use-case-driven tests.
#7about 3 minutes
Summary of key principles for better testing
A recap of the core strategies for writing useful tests, including clear structure, simplified setup, decoupling from implementation, and isolating external dependencies.
#8about 12 minutes
Q&A on testing strategies and team adoption
Answering audience questions about integration testing challenges, code abstraction, introducing new testing methods to a team, and the role of testing for junior developers.
Related jobs
Jobs that call for the skills explored in this talk.
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Wilken GmbH
Ulm, Germany
Remote
Senior
Java
Docker
+3
Matching moments
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
02:48 MIN
Building trust through honest developer advocacy
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
03:10 MIN
Why small companies shouldn't copy big tech processes
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
03:34 MIN
The business case for sustainable high performance
Sustainable High Performance: Build It or Pay the Price
14:14 MIN
Scripting presentations and demos in VS Code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
03:05 MIN
Building collaborative design tools and the neo-brutalism trend
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
01:32 MIN
Organizing a developer conference for 15,000 attendees
Cat Herding with Lions and Tigers - Christian Heilmann
Featured Partners
Related Videos
Dirty Tests And How To Clean Them
Gil Zilberfeld
TDD for Vue.js Developers
Markus Oberlehner
Single Server, Global Reach: Running a Worldwide Marketplace on Bare Metal in a Cloud-Dominated World
Jens Happe
Why you must use TDD now!
Alex Banul
Test-Driven Development: It's easier than you think!
Eric Deandrea
How Unit Testing Saved My Career
Annelore Egger
Why I Love End-2-End Tests and How To Get Them Right
Johannes Stern
Yes, You Need to Unit Test your JavaScript. Here's How.
James Bender
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Eltemate
Amsterdam, Netherlands
Intermediate
Senior
TypeScript
Automated Testing
Continuous Integration

Power Plus Communications
Mannheim, Germany
Intermediate
Senior
Python
Unit Testing
Automated Testing



Patronus Group
Berlin, Germany
Senior
Kotlin
Spring Boot
Amazon Web Services (AWS)

Eltemate
Amsterdam, Netherlands
Intermediate
Senior
Test Planning
Manual Testing
Usability Testing



Ratbacher GmbH
Hagen, Germany
Remote
€75K
Java
JUnit
Docker
+3