Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

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