Skip to content

Testing

Run tests for an app with python manage.py test survey. See testing for more information.

Resources:

Local Testing

The Cannlytics Website can be built locally for testing:

docker build . --tag gcr.io/cannlytics/cannlytics-website
gcloud auth configure-docker
docker push gcr.io/cannlytics/cannlytics-website

Unit testing

In practice, you may not be able to test every case. Therefore, you may want to focus on

  • Null cases
  • Range tests, e.g., positive/negative value tests
  • Edge cases
  • Failure cases
  • Testing the paths most likely to execute most of the time

Resources