Skip to content
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

Allow to use with JUnit categories #15

Open
gunnarmorling opened this issue Mar 4, 2016 · 4 comments
Open

Allow to use with JUnit categories #15

gunnarmorling opened this issue Mar 4, 2016 · 4 comments

Comments

@gunnarmorling
Copy link

I'd like to be able to use this runner and ignore tests of specific JUnit categories. I.e. it'd be nice to have support for the @IncludeCategory/@ExcludeCategory annotations (or a cpsuite-specific counterpart).

@MichaelCowanPdx
Copy link

Not having this is a non-starter for me :(

@shayfdna
Copy link

Can you add category support, please ? :(

@mlapierre
Copy link

It seems likely this isn't going to happen unless someone forks the project.

I was able to get categories working with this workaround:

@RunWith(Categories.class)
@ExcludeCategory({QuarantinedTests.class})
@SuiteClasses({MySuite.class})
public class WrapperSuite { }

@RunWith(ClasspathSuite.class)
@ClassnameFilters({"mytests.*"})
public class MySuite { }

@shayfdna
Copy link

Thanks @mlapierre. i moved to junit-toolbox.
which i had to fix something in the code... (MichaelTamm/junit-toolbox#16) but its working now.

weird that JUnit is not supporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants