Multiple Threads for Junit Classes




I was wondering if any one has experience in which multiple Junit
classeshas to be run concurrently and not in a sequential way(or
whichever way Junit runs). As I understand Junit just scans/gatters
all the files for testcases and run then one by one , it also
introduces its @Before, @After etc tags which do not work as normal
class or object hierarchies e.g. I am not sure but it seems like
events that are triggered instead of object creations.

Now I want to run different threads of junit classes in same JVM. is
there a way? Right now I am using a JUnitCore object and running each
class with it. and making one thread run one JunitCore. is this
correct?

any help is greatly appreciated , as I have read some junit books and
this information is available nowhere. also the structure of JUnit is
also not clear.

thanks

.



Relevant Pages

  • Re: Multiple Threads for Junit Classes
    ... classeshas to be run concurrently and not in a sequential way(or ... As I understand Junit just scans/gatters ... Right now I am using a JUnitCore object and running each ...
    (comp.lang.java.programmer)
  • Re: Multiple Threads for Junit Classes
    ... classeshas to be run concurrently and not in a sequential way(or ... As I understand Junit just scans/gatters ... Right now I am using a JUnitCore object and running each ...
    (comp.lang.java.programmer)