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

Surefire 2.11 fails if useManifestOnlyJar is false

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11
    • Fix Version/s: 2.12
    • Component/s: None
    • Labels:
      None

      Description

      When I tried to upgrade Avro (http://svn.apache.org/repos/asf/avro/trunk/lang/java) from surefire 2.10 to 2.11, I found that every single test failed. They all fail with initializationErrors such as

      initializationError(org.apache.avro.io.parsing.TestResolvingGrammarGenerator): Test class should have exactly one public zero-argument constructor
      initializationError(org.apache.avro.io.parsing.TestResolvingGrammarGenerator): No runnable methods

      These are valid JUnit 4 type tests that run fine with 2.10. We have JUnit 4.10 in our test scope.

      If I change useManifestOnlyJar to true, it works. Unfortunately one of our tests will not function with the manifectOnlyJar.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              scottcarey Scott Carey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: