Adding a new app to test
There are three steps to adding a new app to test:
Add the app name to the
Gruntfile.jsfile. Note: the app has to correspond to an actual Django app.
Create a mocha template in
corehq/apps/<app>/templates/<app>/spec/mocha.htmlto run tests. See an example on here.
Create tests that are included in the template in
Creating an alternative configuration for an app
Occasionally there’s a need to use a different mocha template to run tests for the same app. In order to create multiple configurations, specify the app in the Gruntfile.js like this:
Now mocha will look for that template in
The url to visit that test suite is