You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yiannis Dermitzakis (Jira)" <ji...@apache.org> on 2019/09/20 14:46:00 UTC

[jira] [Created] (SUREFIRE-1695) Support multiple inheritance of @Categories

Yiannis Dermitzakis created SUREFIRE-1695:
---------------------------------------------

             Summary: Support multiple inheritance of @Categories
                 Key: SUREFIRE-1695
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1695
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.7+ (parallel) support, Maven Surefire Plugin
    Affects Versions: 3.0.0-M3
            Reporter: Yiannis Dermitzakis


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 examples I have written as (integration/unit) tests. I can provide a PR.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)