You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2020/07/10 11:32:55 UTC

[maven-surefire] branch flush updated: junit47-twoForks-ff1 we expect two tests running in parallel ATest and BTest.

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch flush
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/flush by this push:
     new 6b18b1a  junit47-twoForks-ff1 we expect two tests running in parallel ATest and BTest.
6b18b1a is described below

commit 6b18b1a09096941753b174a019f9867b99ecbdff
Author: tibordigana <ti...@apache.org>
AuthorDate: Fri Jul 10 13:32:47 2020 +0200

    junit47-twoForks-ff1 we expect two tests running in parallel ATest and BTest.
---
 .../java/org/apache/maven/surefire/its/AbstractFailFastIT.java    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/AbstractFailFastIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/AbstractFailFastIT.java
index 69964f4..5b2bf56 100644
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/AbstractFailFastIT.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/AbstractFailFastIT.java
@@ -120,8 +120,16 @@ public abstract class AbstractFailFastIT
     public void test() throws Exception
     {
         String cls = useProcessPipes ? LEGACY_FORK_NODE : SUREFIRE_FORK_NODE;
+        OutputValidator validator =
         prepare( description, profile, properties )
             .assertTestSuiteResults( total, errors, failures, skipped )
             .assertThatLogLine( containsString( "Found implementation of fork node factory: " + cls ), equalTo( 1 ) );
+        if ( description.equals( "junit47-twoForks-ff1" ) )
+        {
+            for ( String line : validator.loadLogLines() )
+            {
+                System.out.println( line );
+            }
+        }
     }
 }