From 7bda3f195067445ff109ef6a7e3ddac7d168ee77 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 2 Nov 2021 22:42:38 +0100 Subject: [PATCH] JUnit 4: Allow "exit" at the end of tests --- lib/junit_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/junit_adapter.rb b/lib/junit_adapter.rb index b920a56a..705f85b2 100644 --- a/lib/junit_adapter.rb +++ b/lib/junit_adapter.rb @@ -3,7 +3,7 @@ class JunitAdapter < TestingFrameworkAdapter COUNT_REGEXP = /Tests run: (\d+)/.freeze FAILURES_REGEXP = /Failures: (\d+)/.freeze - SUCCESS_REGEXP = /OK \((\d+) tests?\)\s*(?:\x1B\]0;)?\z/.freeze + SUCCESS_REGEXP = /OK \((\d+) tests?\)\s*(?:\x1B\]0;|exit)?\s*\z/.freeze ASSERTION_ERROR_REGEXP = /java\.lang\.AssertionError:?\s(.*?)\tat org.junit|org\.junit\.ComparisonFailure:\s(.*?)\tat org.junit/m.freeze def self.framework_name