NUnit Matcher

Article ID:360033193971
1 minute readKnowledge base
push (@::gMatchers,
  {
        id =>               "nunitSummary",
        pattern =>          q{^\s*Tests run: (\d+), }
                                    . q{Failures: (\d+), Not run: (\d+),},
        action =>           q{incValue("tests", $1);
                                    if ($2 > 0) {
                                        incValue("errors", $2);
                                        diagnostic("", "error");
                                    }},
  },
);