Saturday, August 20, 2011

Run tests using Maven

By default mvn test, tries to execute the unit tests in the folder src/test/java. In order to override that behavior the parameter "testSourceDirectory" can be provided.  If "testSourceDirectory" is specified as src/main/java, then the classes under that directory can be executed using mvn test command.

No comments:

Post a Comment