tags:

views:

35

answers:

3

I wanna use junit 3. Is there such functionality to run all tests by using console in junit 3. If not, does junit 4 support it?

A: 

Yes you can. Create a test suite and all the tests that you want to run to this test suite. Run this test suite from console.

Harsha
A: 

You can create different test suites that are relevant to the part of the code you're working on (as stated in the faq) and then run them from the console.

mgv
A: 

Or you can use Ant to run all your tests from the console, doesn't matter if it's junit 3 or 4. Ant includes a junit task specifically for this. See my response here for a code sample on how to use Ant for this.

Cesar