DEV Community

Cover image for ArchUnit
Alexandru Muntean
Alexandru Muntean

Posted on • Updated on

ArchUnit

Hello there!

This is the first tool I encountered in my search journey and it seems that slowly but surely takes effect while we are focusing only on the business logic of the project.

ArchUnit

Its purpose is to help developers ensure an architecture level quality by writing a suite test case to cover all that matters to the project and the team involved.

This library offers great support for newcomers and has different ways to include it in your project based on the JUnit version or an alternative in case there is no JUnit used.

In the above list, you can find, for each option, several Test classes that have specific goals e.g. CyclicDependencyRulesTest.java (which I warmly recommend you trying at least)

Also, each of the Test classes has an associated Real Test class in which the applied rules are explained.


I hope it will help you too, and feel free to come up with suggestions or alternatives. Happy coding!


Stay tuned for the next article in the series!

Cover photo by Markus Spiske on Unsplash

Top comments (0)