INNOGAMES STORIES

How to make your tests more readable and maintainable

Tests should be easy to read and fun to write! In our daily business, we add new features and do refactoring or bug fixes. Every change could lead to a failing test. If we look at the failed test, we should immediately be able to understand what the test is doing. But often enough this is not the case.

In this post I will show you how we improved the readability and maintenance effort of our tests by introducing a builder-like API to prepare the test scenario.

Aspect Oriented Programming

When the requirements are given for a piece of software, they usually cover only a minor section of what the software should do and be. Aspect-Oriented Programming (AOP) provides a way to think about all the necessary, but not easily compartmentalized components of a software system.