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

turn on useFile=false from the command line?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.5
    • None
    • Maven Surefire Plugin
    • None

    Description

      When running tests from the command line (e.g. "mvn test -Dtest=FooTest" actually showing on the console the summary and stack trace of failures is very useful.

      However many projects have surefire configured in a root pom.xml and often has the default of useFile=true.

      It would be nice to be able to do something like...

      mvn test -Dtest=foo -DuseFile=false

      to be able to get a nice output of what the failed exception is and the stack trace etc.

      It might be nice to enable useFile=false when -Dtest= is specified too.

      How about we add a new field which maps to -DuseFile and if its specified then override the configuration from the pom.xml?

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              jstrachan James Strachan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: