Using Maven - Unit Tests
by, 11-05-2011 at 08:00 PM (441 Views)
You want Maven to compile your unit tests. Simply place you unit tests in a directory and mention the director under
Once that is done, specify the unit tests which you want to run in unitTest XML element. You may use includes and excludes tags to include or exclude the classes.
So that means the Maven provides you the goal (target) to run the unit tests which makes life easier for the developer. Do try it.Java Code:**/*Test*.java **/BaseTestCase.java