You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by so...@apache.org on 2018/09/14 03:55:55 UTC

[maven-surefire] branch SUREFIRE-1564 updated (021bfae -> 95fa1d8)

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

sor pushed a change to branch SUREFIRE-1564
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git.


 discard 021bfae  Add failing IT showing JUnit Platform Provider stays on 1.2.0
     new 95fa1d8  Add failing IT showing JUnit Platform Provider stays on 1.2.0

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (021bfae)
            \
             N -- N -- N   refs/heads/SUREFIRE-1564 (95fa1d8)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/maven/surefire/its/JUnitPlatformIT.java   | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)


[maven-surefire] 01/01: Add failing IT showing JUnit Platform Provider stays on 1.2.0

Posted by so...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 95fa1d8b6afb40f6f43792b5af5eef4d0899af58
Author: Christian Stein <so...@gmail.com>
AuthorDate: Fri Sep 14 05:51:56 2018 +0200

    Add failing IT showing JUnit Platform Provider stays on 1.2.0
    
    Issue #1564
---
 .../apache/maven/surefire/its/JUnitPlatformIT.java | 25 +++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
index e1b808f..5884cea 100644
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
@@ -19,6 +19,7 @@ package org.apache.maven.surefire.its;
  * under the License.
  */
 
+import org.apache.maven.surefire.its.fixture.OutputValidator;
 import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
 import org.junit.Before;
 import org.junit.Test;
@@ -65,7 +66,29 @@ public class JUnitPlatformIT
     @Test
     public void testJUnitPlatform_1_0_0()
     {
-        unpack( "/junit-platform-1.0.0" ).executeTest().verifyErrorFree( 1 );
+        OutputValidator validator = unpack( "/junit-platform-1.0.0" )
+                .setLauncherJavaHome(System.getenv("JAVA_HOME"))
+                .addGoal("-X")
+                .executeTest()
+                .verifyErrorFree( 1 );
+
+        validator.verifyTextInLog( "test(compact) classpath" ) // is fine, all versions are coming from the project
+                .verifyTextInLog( "apiguardian-api-1.0.0.jar" )
+                .verifyTextInLog( "junit-jupiter-api-5.0.0.jar" )
+                .verifyTextInLog( "junit-jupiter-engine-5.0.0.jar" )
+                .verifyTextInLog( "junit-platform-commons-1.0.0.jar" )
+                .verifyTextInLog( "junit-platform-engine-1.0.0.jar" )
+                .verifyTextInLog( "opentest4j-1.0.0.jar" );
+
+        validator.verifyTextInLog( "provider(compact) classpath" ) // is broken, some versions remain on "1.2.0"
+                .verifyTextInLog( "surefire-api-" ) // and current version, like "2.22.1-SNAPSHOT.jar"
+                .verifyTextInLog( "surefire-junit-platform-" ) // and current version, like "2.22.1-SNAPSHOT.jar"
+                .verifyTextInLog( "apiguardian-api-1.0.0.jar" )
+                .verifyTextInLog( "junit-jupiter-engine-5.0.0.jar" )
+                .verifyTextInLog( "junit-platform-commons-1.0.0.jar" ) // is always "1.2.0"
+                .verifyTextInLog( "junit-platform-engine-1.0.0.jar" ) // is always "1.2.0"
+                .verifyTextInLog( "junit-platform-launcher-1.0.0.jar" ) // is always "1.2.0"
+                .verifyTextInLog( "opentest4j-1.0.0.jar" );
     }
 
     @Test