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
[0.23.0 changelog of ArchUnit|https://github.com/TNG/ArchUnit/releases] mentions:
ArchRules will now by default reject evaluating if the set passed to the should-clause is empty. This prevents implementation errors like picking a package in that()... that doesn't even exist and thus composing a rule that doesn't check anything (compare the user guide; see TNG/ArchUnit#774; thanks a lot @oberprah)
[...]
You can restore the old behavior by setting the ArchUnit property archRule.failOnEmptyShould=false
Type of Issue
It is a :
bug / regression
request
question regarding the documentation
Motivation
Being able to define rule set in parent Maven file without knowing in advance if the module will contain classes satisfying the test.
Current Behavior (since 2.9.0)
<rule>com.societegenerale.commons.plugin.rules.TestClassesNamingRuleTest</rule>
fails on modules with no test classes
<rule>com.societegenerale.commons.plugin.rules.NoPrefixForInterfacesRuleTest</rule>
fails on modules without interfaces
etc
Expected Behavior (in 2.8.0)
Build succeeds on modules without Java classes as well as on the ones which do not satisfy the "that" conditions of all defined rules in the build configuration.
i.e. set globally archRule.failOnEmptyShould = true for this build-plugin
Steps to Reproduce (for bugs)
See "current behavior"
Your Environment
Version used:
OS and version:
Version of libs used:
The text was updated successfully, but these errors were encountered:
Summary
[0.23.0 changelog of ArchUnit|https://github.com/TNG/ArchUnit/releases] mentions:
Type of Issue
It is a :
Motivation
Being able to define rule set in parent Maven file without knowing in advance if the module will contain classes satisfying the test.
Current Behavior (since 2.9.0)
<rule>com.societegenerale.commons.plugin.rules.TestClassesNamingRuleTest</rule>
fails on modules with no test classes
<rule>com.societegenerale.commons.plugin.rules.NoPrefixForInterfacesRuleTest</rule>
fails on modules without interfaces
Expected Behavior (in 2.8.0)
Build succeeds on modules without Java classes as well as on the ones which do not satisfy the "that" conditions of all defined rules in the build configuration.
i.e. set globally
archRule.failOnEmptyShould = true
for this build-pluginSteps to Reproduce (for bugs)
See "current behavior"
Your Environment
The text was updated successfully, but these errors were encountered: