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

Support multiple inheritance of @Categories

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tibordigana Tibor Digana
            derio Yiannis Dermitzakis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

              Slack

                Issue deployment