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 |
---|
maven test:single -DtestcaseDtest=[package].[classname] |
For instance, to run the FixedConeClustererTest, use this command.
No Format |
---|
mavenmvn test:single -Dtestcase=org.lcsim.recon.cluster.fixedcone.Dtest=FixedConeClustererTest |