Part 3: Testing with Faktor-IPS

Overview

In each software development project, software testing entails considerable expenses. Running regression tests manually is a particularly costly approach, so automated regression tests have been around as a best practice for a long time.

In the Java community, JUnit has been successfully used for many years to run regression tests. With JUnit, the tests are written in Java by the developer. Test cases can be executed directly inside the Java development environment. Similarly, JUnit can be integrated in common build tools like Gradle and Maven.

We can also use JUnit in Faktor-IPS projects because Faktor-IPS generates testable Java source code. In addition, Faktor-IPS offers its own, extended test support which includes both the definition and execution of test cases.

This tutorial will first explain the underlying concepts and then use an example to demonstrate in detail how this test environment works. Finally we explain how the execution of Faktor-IPS tests can be integrated in build tools.