Allow multiline Assertion Errors for python

This commit is contained in:
Sebastian Serth
2020-03-21 18:34:36 +01:00
parent 2fc9153e81
commit 64e6d01b9b
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@ class PyUnitAdapter < TestingFrameworkAdapter
COUNT_REGEXP = /Ran (\d+) test/
FAILURES_REGEXP = /FAILED \(.*failures=(\d+).*\)/
ERRORS_REGEXP = /FAILED \(.*errors=(\d+).*\)/
ASSERTION_ERROR_REGEXP = /AssertionError:\s(.*)/
# The regex below also catches new line separators.
ASSERTION_ERROR_REGEXP = /AssertionError:\s(.*)\s\s----------------------------------------------------------------------/s
def self.framework_name
'PyUnit'