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

Support multiple inheritance of @Categories

    XMLWordPrintableJSON

    Details

      Description

      We are using JUnit Categories together with Surefire's <includes>/<excludes> tags in a Test hierarchy. However we have observed some inconsistencies in the resolution.

      Example: 

      • AbstractTest is tagged with @Category(CategoryB.class)
      • TestA extends AbstractTest and is tagged with @Category(CategoryA.class)
      • When running Surefire with <include>CategoryB</include>, TestA is not executed.

       

      There are a few more failure cases, written as (integration/unit) tests. I have provided a PR with a fix.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                derio Yiannis Dermitzakis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0h
                  0h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m