Skip to content

Commit

Permalink
Changed rule test runner so it no longer fails for disabled rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rensink committed Jun 25, 2024
1 parent 145ac12 commit 80e9ce3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,11 @@ private void test(QualName ruleName, QualName startName) {
try {
Rule rule = this.grammar.toGrammar().getRule(ruleName);
if (rule == null) {
Assert.fail(String.format("Rule '%s' is currently disabled", ruleName));
System.err.printf(String.format("Rule '%s' is currently disabled%n", ruleName));
} else {
test(this.grammar.getStartGraphModel().toHost().clone(family), rule, results,
errorCount);
}
test(this.grammar.getStartGraphModel().toHost().clone(family), rule, results,
errorCount);
} catch (FormatException e) {
Assert.fail(e.getMessage());
}
Expand Down

0 comments on commit 80e9ce3

Please sign in to comment.