Annelore Egger
How Unit Testing Saved My Career
#1about 3 minutes
How unit testing helps overcome early programming struggles
Unit testing provides quick feedback and encourages better code structure, making it easier for new programmers to understand and debug their work.
#2about 2 minutes
Structuring clear and simple unit tests
Adopting a consistent structure like "Given-When-Then" and using descriptive method names makes tests easier to understand and maintain.
#3about 4 minutes
How writing testable code leads to cleaner code
Refactoring a monolithic method into smaller, testable units naturally improves code readability, maintainability, and overall quality.
#4about 2 minutes
Using test-driven development to guide implementation
Test-driven development (TDD) forces you to think about requirements first, leading to more structured code and serving as a form of documentation.
#5about 3 minutes
Isolating dependencies with mocking frameworks like Mockito
Mocking frameworks like Mockito allow you to isolate the unit under test by replacing external dependencies with controlled mock objects.
#6about 3 minutes
The vicious cycle of untestable legacy code
A lack of tests in legacy code creates a vicious cycle where developers fear refactoring, leading to worse code that is even harder to test.
#7about 3 minutes
Using parameterized tests for efficient test coverage
Parameterized tests in JUnit allow you to run a single test method with multiple input values, simplifying the process of covering various scenarios and edge cases.
#8about 3 minutes
Challenging and simplifying complex test setups
When faced with a complex test setup, challenge its necessity by asking why it exists and explore simplifying it by improving code testability or using mocks.
#9about 2 minutes
Understanding the test pyramid and single responsibility
The test pyramid guides the ratio of unit, integration, and end-to-end tests, with units being small pieces of code that adhere to the single responsibility principle.
#10about 1 minute
Final thoughts on unit testing as a developer's tool
Treat unit tests as a valuable development tool, and if they become a source of friction, investigate and challenge the underlying code or test setup complexity.
Related jobs
Jobs that call for the skills explored in this talk.
Power Plus Communications
Mannheim, Germany
Intermediate
Senior
Python
Automated Testing
+1
Eltemate
Amsterdam, Netherlands
Intermediate
Senior
TypeScript
Continuous Integration
+1
Matching moments
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:58 MIN
Making accessibility tooling actionable and encouraging
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:07 MIN
Final advice for developers adapting to AI
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
02:55 MIN
Why developers often undervalue their time and paid tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
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
05:12 MIN
How to build structure and culture without killing agility
From Data Keeper to Culture Shaper: The Evolution of HR Across Growth Stages
Featured Partners
Related Videos
Write tests you love, not hate
Jens Happe
Your Testing Strategy is broken - lets fix it!
Luise Freese
How not to test
Golo Roden
How To Test A Ball of Mud
Ryan Latta
Test-reduction - Doing more with less
Ewald Verhoeven
Breaking the Bug Cycle: TDD for the Win
Nadeen Hussein
The 2025 State of JavaScript Testing
Daniel Afonso
Treat yourself - A tale about dog training and test-driven development
Mirjam Aulbach
Related Articles
View all articles



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

Epam Systems, Inc.
Zürich, Switzerland
Selenium
Cucumber
TypeScript
Tricentis Tosca Testsuite




ALTEN Consulting ServicesALTEN Consulting Services GmbH
Stuttgart, Germany
C++
GIT
Linux
Python

UserTesting
Barcelona, Spain
Go
Bash
Python
Node.js
CircleCI
+6

TOCON Engineering GmbH


Sedenius Engineering GmbH
Dresden, Germany
API
JUnit
Python
Gitlab
Docker
+6