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
I think that for ArchUnit's internal rules, rule.check(classes) currently always ends up in ArchRule.Assertions.check(rule, classes), which throws an AssertionError on failures, regardless of the priority , which should be available in the EvaluationResult and FailureReport.
What can a test reasonably do on violations other than fail? Log the report and hope that somebody will read it? (Good luck!)
If you're willing to wrap all your rules manually, you could easily define an ArchRule decorator for such a behavior:
Let's say that I have a rule this way
I should be able to set somewhere that even if this rule is violated I should simply throw a warning, but not fail the test suite.
How do I do that ? There should be some native way to do this, as opposed to doing it via a huge method.
if there's no native way, I guess that could be prioritized :)
The text was updated successfully, but these errors were encountered: