Home > Developers > Wiki > CheetahIntegrationTests
Views


Developing Integration Tests

  • Integration tests are located in the application/ module, and are marked with a TestNG tag of "integration".
  • Integration tests can touch the the database following these guidelines:
  • Always set up all the data you expect in the database before the test, for instance in a setup() method. Do not depend on other tests setting up data for you! DbUnit and SimpleDataSet provide easy ways to do this.
  • Do not expect pre-loaded data. The acceptance tests and the automatic deploy to the test server have sql scripts that will pre-load data into the database, but the integration tests do not. This is by design.


Grameen logo