Home > Developers > Wiki > CheetahUnitTests
Views


Running from the command line

  • cd to the application/ directory
  • Run all the tests: mvn clean install
  • Run one test: mvn test -Dtest=TheNameOfYourTestClass

Developing Unit Tests

  • Under no circumstances should the unit tests touch the database! Use mock objects or in-memory implementations. The unit tests need to run quickly, and touching a database makes them slow and fragile.


Grameen logo