Session

How Unit Testing Saved My Career

When I first started programming and the code did not behave as I expected, I struggled to understand why. Discovering unit testing changed that. Tests helped me validate my work, understand my code, and write it more clearly.

Later, I encountered projects where testing became a source of frustration itself. Complex unit and integration tests made it hard to understand what was actually being tested. When they failed, it was not always clear whether the problem was in the code, the test, or the setup around it.

In this talk, I will share what these experiences taught me about making tests genuinely useful during development. Using Java, JUnit and Mockito, I will explore testable code, mocking, parameterized tests and what to question when a test setup becomes harder to understand than the code it is supposed to test. I will also share an example from my work with AI, where generated code can come with passing tests while both still misunderstand the actual requirement.

Testing can do more than tell you whether code works. It can help you understand and shape your code, and give you confidence while changing it. You will leave with practical ways to recognize when tests are helping, and when the tests themselves deserve to be questioned.


Learning about unit testing was one of the most valuable things that happened to me while I was learning to program. It gave me a way to understand what my code was doing, helped me structure it better, and made programming feel much less frustrating.

Later, I also experienced the opposite side of testing, where complex setups made tests difficult to understand and trust. In this talk, I share how those different experiences changed the way I think about testing and why I now see unit tests as much more than a way to check whether code works. They can also be a tool for understanding, designing, and changing code with more confidence.

Annelore Egger

Software Engineer, OpenValue Switzerland

Brugg, Switzerland

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top