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

Make specs2 aware of JUnit categories #256

Closed
martinburger opened this issue Apr 16, 2014 · 5 comments
Closed

Make specs2 aware of JUnit categories #256

martinburger opened this issue Apr 16, 2014 · 5 comments

Comments

@martinburger
Copy link

We use JUnit categories to group "fast" and "slow" tests. Unfortunately, in the words of Eric Torreborre:

Specs2 indeed doesn't know about Junit categories yet.

See this question of Stack Overflow for further information.

@etorreborre
Copy link
Owner

I have just added the Filterable interface on the JUnitRunner, which should filter the specification class based on categories annotations. Unfortunately I can't test it at the moment. Can you please grab specs2-2.4-SNAPSHOT and check if it's working for you?

@etorreborre
Copy link
Owner

Did you have time to test this?

@martinburger
Copy link
Author

I could finally take some time to test this. However, it seems that specs2 still ignores the JUnit category: although I added the category via @Category(Array(classOf[NightlyTestCategory])), Surefire still runs all tests including the actually ignored ones.

@benmccann
Copy link

Yes, this is a great feature. We added this to junit-interface

@etorreborre
Copy link
Owner

Available as 3.5-20150421030134-582d033 if you want to test it.

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

3 participants