django-admin-tools / docs / testing.rst

Testing of django-admin-tools

This is information for developers of django-admin-tools itself.

Running tests

Run the script which is situated at the root dir of django-admin-tools project.

Run all tests:

$ ./

Run only unit tests:

$ ./ unit

Run only tests for specified app:

$ ./ dashboard

Run only one test case:

$ ./ dashboard.ManagementCommandTest

Run only one test:

$ ./ dashboard.ManagementCommandTest.test_customdashboard

Code coverage report

Install the library and the django-coverage app:

$ pip install coverage django-coverage

Then run tests and open test_proj/_coverage/index.html file in browser.

Where tests live

Unit tests should be put into appropriate module's Functional/integration tests should be put somewhere into test_proj.