Running the test suite for Bookie is very simple:
$ make test $ make jstest
Unit tests are small tests that should test small bits of code. These should be setup in the same directory that the file you’re testing is setup. So if you’re working on a file in lib/feature.py you’d have a matching file test_feature.py. This file should be runnable via the test runner by itself.
Functional tests are larger scope tests that make sure the application is responding correctly as a whole. These are run through the fabric command fab test. It will run all tests defined in the tests directory.
Note: All unit tests should be added to the tests/__init__.py so that they get run during the large test run. This way the ci server will just need to run the one test pass and all tests will run during each build.
A bit confusing. There’s lots of docs, but none of them seem to agree on how to bootstrap the environment properly.