[maven-surefire] branch SUREFIRE-1564 created (now 021bfae)

classic Classic list List threaded Threaded
2 messages Options
sor
Reply | Threaded
Open this post in threaded view
|

[maven-surefire] branch SUREFIRE-1564 created (now 021bfae)

sor
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.


      at 021bfae  Add failing IT showing JUnit Platform Provider stays on 1.2.0

This branch includes the following new commits:

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

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.


sor
Reply | Threaded
Open this post in threaded view
|

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

sor
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 021bfae440cf5da5c962720c3d3edcc40b52b486
Author: Christian Stein <[hidden email]>
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..513a44c 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