You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Abhishek (Jira)" <ji...@apache.org> on 2019/11/13 09:36:00 UTC

[jira] [Created] (SUREFIRE-1718) running build and test separately with surefire

Abhishek created SUREFIRE-1718:
----------------------------------

             Summary: running build and test separately with surefire  
                 Key: SUREFIRE-1718
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1718
             Project: Maven Surefire
          Issue Type: Wish
          Components: Maven Surefire Plugin
    Affects Versions: 3.0.0-M3
            Reporter: Abhishek


Hi Team,

We have requirement to run build and unit test separately with sure fire, how can we achevie this, i was going through all documentations available in internet but could not find any which works for us.

Our requirements is by running package goal with test skipped, we are able to generate 2 jars one for actual code and other for test like

Step#1

mvn package -DskipTests=true

 

In next step i would like to run 

Step#2

mvn surefire:test

but how can i provide source jar and test jar generated in step#1 to surefire:test in step#2?

I don't want to have test jar as dependency in pom.

 

Thanks in advance.

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)