Testing Side Effects
Controlling the objects that a class depends on can allow us to verify the correct interactions occur from unit tests.
Controlling the objects that a class depends on can allow us to verify the correct interactions occur from unit tests.
Automated behavioural tests provide living documentation and help to create a shared language between business experts and the development team.
In this post we will initialise a Git repository and add unit tests to an existing Kotlin and Gradle project.
Here is a short introduction to using Gradle and Kotlin in IntelliJ. This setup is perfect for Test Driven Development.
Test Driven Development can be a great help when refactoring code, guiding you to the best possible outcomes.