Sunday 14 September 2014

Run JUnit/TestNG test suite using MAVEN : 

Maven is a build automation, project management and comprehension tool. Both JUnit and TestNg test cases can be executed using Maven. Surefire report plugin generates html report of executed test cases..

Here is how.....

Execute JUnit test Suite: Create some JUnit test cases as i have designed three test case named TC01.java, TC02.java and TC03.java. Add a JUnit test suite, which will call these test case in batch.


Download sample POM.xml for JUnit test cases execution. Execute test with "mvn test" and enjoy..  :)

==================================================================