You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have an ArchUnit test for a layered architecture, which has some mandatory layers and some optional layers, which are currently empts (i.e., there are no classes in the referred package).
This works fine with ArchUnit 0.22.0, but after an update to ArchUnit 0.23.0 I got
java.lang.AssertionError: Rule failed to check any classes. This means either that no classes have been passed to the rule at all, or that no classes passed to the rule matched the `that()` clause. To allow rules being evaluated without checking any classes you can set the ArchUnit property archRule.failOnEmptyShould = false
Removing the access restriction for the optional, empty layer fixes the test, as well as setting
archRule.failOnEmptyShould=false
but without this property the optional layers seem not so optional anymore.
The text was updated successfully, but these errors were encountered:
Thanks for raising this, it seems to go into the same direction as #803, #806 and #808 👍 But I also see that there is an additional component, because layered architecture is composed from multiple sub-rules we need to watch out to in any case set each optional layer sub-rule to allow empty should, no matter what the configuration says.
/cc @oberprah
Hi, I have an ArchUnit test for a layered architecture, which has some mandatory layers and some optional layers, which are currently empts (i.e., there are no classes in the referred package).
This works fine with ArchUnit 0.22.0, but after an update to ArchUnit 0.23.0 I got
Removing the access restriction for the optional, empty layer fixes the test, as well as setting
but without this property the optional layers seem not so optional anymore.
The text was updated successfully, but these errors were encountered: