Use of Archunit

Hi folks,

I’d like to propose the use of the library ArchUnit as a test dependency.

Its purpose is to check for architecture violation, typically low-level packages calling higher-level ones.
Please check this draft MR for an example. I’ve played a bit with it already and we have some problems on the matter, so let’s not add more, and this will help.

Cheers,
Romain.

2 Likes

In my humble opinion, anything that helps improve code quality and architecture is worth considering.

1 Like

I agree with @sdinot, +1

Sweet, I’ll merge it.
Anyway it’s just a test dependency with a few tests (useful still)

I now see the following messages when running tests on my IDE (JetBrains IntelliJ):

SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.

Is it related to this change?
Can we get rid of these warnings (perhaps by adding an SLFJ no-op provider as a test dependency)?

I think you’re right. I’ll have a look (but if you already have an easy fix please commit it)

Cheers,
Romain

Done!

Cheers,
Romain

1 Like