ArchUnit - Open-Source Library for automated Architectural rule testing
The open-source library ArchUnit was first designed by our colleagues a few years ago and has been under continuous improvement ever since.
By using ArchUnit it is possible to enforce architecture rules for Java and Kotlin applications via automated unit tests. It makes for a simple and quick way to check whether, for example, dependencies between packages are allowed, or whether naming conventions are adhered to. In addition, it motivates regular discussions on architecture rules and thus helps to keep documentation alive. Especially in bigger teams with faster turnover of members and extensive code, this can be of great help.
Our colleague Peter Gafert has published an article in the current "Java Magazin" (issue 1/2022) on the introduction of ArchUnit into the architecture process in a team.
More information at https://www.archunit.org/