Prev Next

Testing / Junit Interview questions III

How do I execute JUnit from command line?

Executng Junit from command line involves 2 steps.

1. set the ClassPath to include JUnit core libraries.

set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%junit.jar

2.Invoke JunitCore.

java org.junit.runner.JUnitCore

More Related questions...

Show more question and Answers...


Comments & Discussions