-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Support for Multiple Include/Exclude Categories #340
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
Conversation
… that allow for filtering the items in a test suite by more than one category
…e original annotations take arrays instead of single values
…here there is only one category. Added new unit test that verifies description of multi category filters
private final Class<?>[] fExcluded; | ||
|
||
public CategoryFilter(Class<?>[] includedCategories, | ||
Class<?>[] excludedCategories) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please join with previous line
Requested changes are in |
} | ||
|
||
private String join(String seperator, Class<?>... values) { | ||
if(values == null || values.length == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after "if"
Sorry for the delay. Found a couple more minor things on passing through. Thanks. |
It seems that Category support is being touched by a number of issue currently. Any ETA of a release with Multiple Include/Exclude categories. Also is there a reason why Suites don't inherit and add from Parent suites in regards to Include/Exclude?
Using suite Y runs any b.class but not (a.class && b.class) categorised tests. |
@dekz |
I'm sorry this has lingered so long. @matheeeny, it appears (to my busy, harried eyes) that #142 tries to address some of the same issues. Can you work with the author of that pull request to agree on a single, unified proposal that I can review? I'm not using Categories myself, so I'd like the community of people that are using it to drive the design. Thanks. |
Hi Andrew, would you also contribute in the discussion of #142. |
For those following along, there is continued discussion in #142 |
@matheeeny, I'm going to close this pull request in favor of #142. Let me know if that's the wrong move. |
That's perfectly fine with me On Wed, May 9, 2012 at 7:08 PM, David Saff <
|
This addresses issue 146
hasCorrectCategoryAnnotation(Description description)
that uses the arrays instead of the single values.