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

Default for failIfNoTests should be false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.4, 2.4.1, 2.4.2
    • None
    • Maven Surefire Plugin
    • None

    Description

      In maven the surefire plugin executes by default when ever I build, and since the default for failIfNoTests is now true all of my modules must have at least one test or I must manually configure the plugin to not fail. This is a minor annoyance for single module builds but is a major pain when you have lots of modules. In my case it is extremely annoying since we have example modules we distribute that don't extend or parent pom (so users don't have to pull down our whole code base to get an example project).

      This also means that the syntactic sugar "-Dtest=false" to turn off all testing no longer works.

      At the end of the day, I don't understand why not having tests is a build failure and not just a warning.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dain Dain Sundstrom
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: