Posts Tagged ‘tests’

Maven Surefire for Integration Tests in JUnit

June 14th, 2011 1 comment

Maven surefire plugin is used to run unit tests during test phase of build lifecycle . The reports are generated in .txt or .xml file. These files are generated at ${basedir}/target/surefire-reports

Surefire runs unit tests during build phase, not integration tests which are executed during package phase. But you can include integration tests also to be run

Below is the configuration for surefire plugin in your pom.xml



Categories: Programming / tutorials Tags: ,