lib/scan/test_result_parser.rb in scan-0.4.1 vs lib/scan/test_result_parser.rb in scan-0.4.2

- old
+ new

@@ -1,9 +1,9 @@ module Scan class TestResultParser def parse_result(output) # e.g. ...<testsuites tests='2' failures='1'>... - matched = output.match(/\<testsuites tests='(\d+)' failures='(\d+)'\>/) + matched = output.match(%r{\<testsuites tests='(\d+)' failures='(\d+)'/?\>}) if matched and matched.length == 3 tests = matched[1].to_i failures = matched[2].to_i