Showing posts with label junit4. Show all posts
Showing posts with label junit4. Show all posts

Wednesday, April 25, 2012

How to run all tests belonging to a certain Category in JUnit 4


JUnit 4.8 contains a nice new feature called "Categories" that allows you to group certain kinds of tests together. This is very useful, e.g. to have separate test runs for slow and fast tests. I know the stuff mentioned in JUnit 4.8 release notes , but would like to know how I can actually run all the tests annotated with certain category.