DCP strategy: Use stdout for most test results

This commit is contained in:
Sebastian Serth
2021-09-20 11:30:14 +02:00
parent 6c5a5226b8
commit 09b672eb08
2 changed files with 9 additions and 3 deletions

View File

@ -11,6 +11,7 @@ class PyUnitAdapter < TestingFrameworkAdapter
end
def parse_output(output)
# PyUnit is expected to print test results on Stderr!
count = COUNT_REGEXP.match(output[:stderr]).captures.first.to_i
failures_matches = FAILURES_REGEXP.match(output[:stderr])
failed = failures_matches ? failures_matches.captures.try(:first).to_i : 0