From 59d2a8ecdb7cc6a5c461a742a00f20fbc9ac421b Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 6 Nov 2021 00:03:45 +0100 Subject: [PATCH] Junit5: Specify line to search for assertion error --- lib/junit5_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/junit5_adapter.rb b/lib/junit5_adapter.rb index e253293b..d482a867 100644 --- a/lib/junit5_adapter.rb +++ b/lib/junit5_adapter.rb @@ -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'