Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1718

running build and test separately with surefire

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 3.0.0-M3
    • None
    • Maven Surefire Plugin
    • None

    Description

      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.

       

       

       

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            abisekwins Abhishek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: