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
Essentially as suggested by Larry Diamond's Stack Overflow answer:
To ensure that a rule catches a certain violation, you should have a unit test evaluate the rule with an intentional violation (which can be defined in a local test scope, cf. #930 (comment)), and assert that the expected failure is obtained.
I don't find an information on how to do it.
I tried Stack Overflow too, without success.
We have about 40 rules on our base code and I want to check automatically that the rules are still validating what is expected.
The text was updated successfully, but these errors were encountered: