[ 
https://issues.apache.org/jira/browse/SUREFIRE-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487670#comment-17487670
 ] 

Tibor Digana commented on SUREFIRE-1861:
----------------------------------------

We will never load test-jar because it does not exist and the Maven does not 
create it.
The project JAR file is mandatory for the Failsafe plugin only.

The project JAR 
{{file:///d:/junit5-runner/target/junit5-runner-1.0-SNAPSHOT.jar}} appears in 
the manifest.

If you open the XML report, you will see the class path


{noformat}
<property name="surefire.test.class.path" 
value="d:\junit5-runner\target\test-classes;d:\junit5-runner\target\junit5-runner-1.0-SNAPSHOT.jar;D:\repo\org\junit\jupiter\junit-jupiter-engine\5.6.2\junit-jupiter-engine-5.6.2.jar;D:\repo\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;D:\repo\org\junit\platform\junit-platform-engine\1.6.2\junit-platform-engine-1.6.2.jar;D:\repo\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;D:\repo\org\junit\platform\junit-platform-commons\1.6.2\junit-platform-commons-1.6.2.jar;D:\repo\org\junit\jupiter\junit-jupiter-api\5.6.2\junit-jupiter-api-5.6.2.jar;D:\repo\org\junit\platform\junit-platform-runner\1.6.2\junit-platform-runner-1.6.2.jar;D:\repo\junit\junit\4.13\junit-4.13.jar;D:\repo\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\repo\org\junit\platform\junit-platform-launcher\1.6.2\junit-platform-launcher-1.6.2.jar;D:\repo\org\junit\platform\junit-platform-suite-api\1.6.2\junit-platform-suite-api-1.6.2.jar;"/>
{noformat}


{noformat}
Manifest-Version: 1.0
Class-Path: file:///D:/repo/org/apache/maven/surefire/surefire-booter/
 3.0.0-M6-SNAPSHOT/surefire-booter-3.0.0-M6-SNAPSHOT.jar file:///D:/re
 po/org/apache/maven/surefire/surefire-api/3.0.0-M6-SNAPSHOT/surefire-
 api-3.0.0-M6-SNAPSHOT.jar file:///D:/repo/org/apache/maven/surefire/s
 urefire-logger-api/3.0.0-M6-SNAPSHOT/surefire-logger-api-3.0.0-M6-SNA
 PSHOT.jar file:///D:/repo/org/apache/maven/surefire/surefire-shared-u
 tils/3.0.0-M6-SNAPSHOT/surefire-shared-utils-3.0.0-M6-SNAPSHOT.jar fi
 le:///D:/repo/org/apache/maven/surefire/surefire-extensions-spi/3.0.0
 -M6-SNAPSHOT/surefire-extensions-spi-3.0.0-M6-SNAPSHOT.jar file:///d:
 /junit5-runner/target/test-classes/ file:///d:/junit5-runner/target/j
 unit5-runner-1.0-SNAPSHOT.jar file:///D:/repo/org/junit/jupiter/junit
 -jupiter-engine/5.6.2/junit-jupiter-engine-5.6.2.jar file:///D:/repo/
 org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar file:
 ///D:/repo/org/junit/platform/junit-platform-engine/1.6.2/junit-platf
 orm-engine-1.6.2.jar file:///D:/repo/org/opentest4j/opentest4j/1.2.0/
 opentest4j-1.2.0.jar file:///D:/repo/org/junit/platform/junit-platfor
 m-commons/1.6.2/junit-platform-commons-1.6.2.jar file:///D:/repo/org/
 junit/jupiter/junit-jupiter-api/5.6.2/junit-jupiter-api-5.6.2.jar fil
 e:///D:/repo/org/junit/platform/junit-platform-runner/1.6.2/junit-pla
 tform-runner-1.6.2.jar file:///D:/repo/junit/junit/4.13/junit-4.13.ja
 r file:///D:/repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.ja
 r file:///D:/repo/org/junit/platform/junit-platform-launcher/1.6.2/ju
 nit-platform-launcher-1.6.2.jar file:///D:/repo/org/junit/platform/ju
 nit-platform-suite-api/1.6.2/junit-platform-suite-api-1.6.2.jar file:
 ///D:/repo/org/apache/maven/surefire/surefire-junit4/3.0.0-M6-SNAPSHO
 T/surefire-junit4-3.0.0-M6-SNAPSHOT.jar file:///D:/repo/org/apache/ma
 ven/surefire/common-java5/3.0.0-M6-SNAPSHOT/common-java5-3.0.0-M6-SNA
 PSHOT.jar file:///D:/repo/org/apache/maven/surefire/common-junit3/3.0
 .0-M6-SNAPSHOT/common-junit3-3.0.0-M6-SNAPSHOT.jar file:///D:/repo/or
 g/apache/maven/surefire/common-junit4/3.0.0-M6-SNAPSHOT/common-junit4
 -3.0.0-M6-SNAPSHOT.jar
Main-Class: org.apache.maven.surefire.booter.ForkedBooter
{noformat}


> failsafe shall use jar
> ----------------------
>
>                 Key: SUREFIRE-1861
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1861
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Failsafe Plugin
>    Affects Versions: 3.0.0-M5
>         Environment: all 
>            Reporter: Ernst Reissner
>            Assignee: Tibor Digana
>            Priority: Critical
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> To run tests based on information stored in jar only but not in 
> testClassesDirectory,
> the plugin shall load classes from the jar instead.
> That way, one could check also presence of vendor information,
> or versions, or git state or whatsoever meta information
> to be supplied to the user and stored in the jar.
>  
> The jar is always available though since we are in a late lifecycle phase.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to