Modern Way of Writing Integration Tests for Maven Plugins

By Karl Heinz Marbaise

Elevator Pitch

The existing approaches for writing integration tests are not very intuitive so the integration testing framework is a new approach to write easier and faster and more like usual unit tests with support of JUnit Jupiter integration tests for your Maven plugins.

Description

Writing integration tests for maven plugins is usually a bit cumbersome by using the existing solution like Maven Invoker Plugin, Maven Verifier etc. The integration testing framework is a complete new approach in writing integration tests for Maven plugins. This framework uses JUnit Jupiter as foundation and allows you to write integration tests for Maven plugins like a usual unit test in Java. This is the most important advantage over any other approach cause this is already familiar to any Java developer. It will be shown how the framework will support you in writing easy and understandable integration tests and how to write simple and more complex setups. Furthermore you will see where current limitations of the frameworks are and what is planned for the future of the framework.

Notes

I’m the inventor of this framework and also I am a Apache Maven PMC which means I have very detailed knowledge how integration tests for Maven plugins can be written or not and what the current limitations of the existing solutions are.

Current users guide: https://khmarbaise.github.io/maven-it-extension/itf-documentation/usersguide/usersguide.pdf Background Guide: https://khmarbaise.github.io/maven-it-extension/itf-documentation/background/background.pdf