There is no way (as of 4.8) to specify categories from the command line.
I can suggest two approaches: 1. Create Ant file with junit target and then invoke this target from commend line. 2.
Implement test suite class, in it in some class with main() method. So you will be able to run it.
Using java run JUnitCore class (also see here). Categories are supposed to be used with test suites with @RunWith(Categories. Class) , @IncludeCategory and @ExcludeCategory.
I am not aware of any dynamic way to use categories to run tests but I'd like to know of such it it exists. You can have pre-defined test suites for certain categories to run them.
It's possible to create custom test runner that dynamically selects tests to run based on categories. – topchef Oct 22 '10 at 14:52 Here's one way to easily run all tests in a suite/category (without explicitly enumerating the tests): stackoverflow. Com/questions/2176570/… (Let me know if this is not what you meant.) – Jonik Jun 3 at 9:45 Yes, I am aware of this (stackoverflow.
Com/questions/3324623/…). I think what author means is running tests based on category as a parameter. – topchef Jun 3 at 15:39.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.