Allow multiline Assertion Errors for python
This commit is contained in:
@ -440,7 +440,7 @@ configureEditors: function () {
|
||||
let errorMessagesToShow = [];
|
||||
result.error_messages.forEach(function (item) {
|
||||
if (item) {
|
||||
errorMessagesToShow.push(item)
|
||||
errorMessagesToShow.push(item.replace(/\n/g, '<br>'))
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user