How to run a single test case in maven 2.
A single test can be run by using the following command, where package should be replaced by the class's package and class classname should be replaced by the name of the class.
No Format |
---|
mavenmvn test:single -DtestcaseDtest=[package].[classname] |
For instance, to run the FixedConeClustererTest, use this command.
No Format |
---|
mvn test -Dtest=FixedConeClustererTest
|
If you encounter a BUILD FAILURE with this command, please try the following
No Format |
---|
mvn test -Dtest=FixedConeClustererTest -DfailIfNoTests=false maven test:single -Dtestcase=org.lcsim.recon.cluster.fixedcone.FixedConeClustererTest |