Junit5: Specify line to search for assertion error

This commit is contained in:
Sebastian Serth
2021-11-06 00:03:45 +01:00
parent 49d8bebb48
commit 59d2a8ecdb

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/m.freeze
def self.framework_name
'JUnit 5'