Fix JUnit 5 for ArrayComparisonFailure

This commit is contained in:
Sebastian Serth
2022-05-14 19:02:12 -04:00
parent ea728f54ec
commit 7e5e4110c4

View File

@ -3,7 +3,7 @@
class Junit5Adapter < TestingFrameworkAdapter
COUNT_REGEXP = /(\d+) tests found/.freeze
FAILURES_REGEXP = /(\d+) tests failed/.freeze
ASSERTION_ERROR_REGEXP = /=> java\.lang\.AssertionError:?\s(.*?)\s*org.junit|=> org\.junit\.ComparisonFailure:\s(.*?)\s*org.junit/m.freeze
ASSERTION_ERROR_REGEXP = /=> java\.lang\.AssertionError:?\s(.*?)\s*org\.junit|=> org\.junit\.ComparisonFailure:\s(.*?)\s*org\.junit|=>\s(.*?)\s*org\.junit\.internal\.ComparisonCriteria\.arrayEquals/m.freeze
def self.framework_name
'JUnit 5'