From 7e5e4110c4291c32652a558bb86c7c63980ef10c Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 14 May 2022 19:02:12 -0400 Subject: [PATCH] Fix JUnit 5 for ArrayComparisonFailure --- 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 0d615ae6..f5f637e3 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|=>\s(.*?)\s*org\.junit\.internal\.ComparisonCriteria\.arrayEquals/m.freeze def self.framework_name 'JUnit 5'