Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch
Description
We have multiple tests in multiple groups and we want to use tests group hierarchy using interface inheritance so we can specify if we wants to run e.g. all NiceTests or more specific NicePurpleTests.
Right now are tests @Category compared to surefire's group by class name.
e.g.:
If we have category hierarchy:
interface NiceTests extends AllTests; interface NicePurpleTests extends NiceTests;
and tests:
@Category(NiceTests.class) public void ReallyNiceTest(); @Category(NicePurpleTests.class) public void NicePurpleTestWithDots();
and surefire groups set to:
<groups>com.example.NiceTests</groups>
it runs only ReallyNiceTest, but not NicePurpleTestWithDots as wanted.
I've attached patch which fixed it for me.