Maven Surefire
  1. Maven Surefire
  2. SUREFIRE-819

Surefire 2.11 fails if useManifestOnlyJar is false

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12965933 ] Default workflow, editable Closed status [ 13003635 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:36:33 UTC 2015 [ 1428284193036 ]
        Mark Thomas made changes -
        Workflow jira [ 12728064 ] Default workflow, editable Closed status [ 12759144 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:23:32 UTC 2015 [ 1428240212200 ]
        Scott Carey made changes -
        Field Original Value New Value
        Fix Version/s 2.12 [ 18148 ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Scott Carey created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development