-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple categories for @IncludeCategory and @ExcludeCategory #146
Comments
Yes, please! |
I couldn't get your suggested workaround to work. Could you provide more details? |
Ok, lets see if I remember some of this... Been a while. Say I have a UnitTestSuite that should exclude the category "SlowTest" AND the category "IntegrationTest". /**
The extended IntegrationTestExcluderSuite looks like this: /**
And the base category suite: /**
|
I actually ended up forking and adding the feature myself. Pull request is in. |
Great. Hope it gets pulled! |
Are you sure that inheritance model actually works, from what I can see it just takes the @Include/Exclude of the TestSuite and doesn't take into account the parent. Reproduced by categorising 2 tests one as A, the other as B. Class X @include A and class Z extend X and @include B. Use X to run the Tests and see it will run the tests with B and not a test only with A,B. |
I second the demand. Again I am willing to provide the code if you see a chance it is going to be accepted. |
@gaffa Pls do not work on a code, because we already agreed a concept and the code is ready including the tests. I hope we will provide this in next releases. I would like you to invite into my pull due to the Javadoc and wiki page. I am very busy with other pull, so your help is welcome in Javadoc. Do you agree with me? Thx. |
Hi Tibor! I am pretty busy working right now. I would have offered a quick solution but your pull request seems to cover more? Its not linked in this thread, is it? |
Fixed by #503 and shipping with 4.12. |
Hi list!
It would be great if @IncludeCategory and @ExcludeCategory would accept multiple categories
like the @category annotation does today.
There is a not-so-beatiful workaround. You can get multiple includes or excludes
if you create an inheritance hierarchy of suites and exclude one category on
each level.
The text was updated successfully, but these errors were encountered: