1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Updated to newer coding standard

This commit is contained in:
mvandervoord
2019-10-24 15:33:41 -04:00
parent addd60edab
commit eb0bd42f0d
11 changed files with 417 additions and 389 deletions

View File

@@ -152,6 +152,7 @@ class UnityToJUnit
def parse_test_summary(summary)
raise "Couldn't parse test results: #{summary}" unless summary.find { |v| v =~ /(\d+) Tests (\d+) Failures (\d+) Ignored/ }
[Regexp.last_match(1).to_i, Regexp.last_match(2).to_i, Regexp.last_match(3).to_i]
end
@@ -230,7 +231,9 @@ if $0 == __FILE__
targets = "#{options.results_dir.tr('\\', '/')}**/*.test*"
results = Dir[targets]
raise "No *.testpass, *.testfail, or *.testresults files found in '#{targets}'" if results.empty?
utj.targets = results
# set the root path