Jan Dittberner
d82146987e
- fix headline in index.rst - add release 0.1 in changelog and add two more features - add tests.rst documenting how to run the test suite and how to check test coverage
26 lines
490 B
ReStructuredText
26 lines
490 B
ReStructuredText
Tests
|
|
=====
|
|
|
|
To run the tests you can just use the :program:`manage.py` script:
|
|
|
|
.. code-block:: sh
|
|
|
|
$ python manage.py test
|
|
|
|
Coverage
|
|
--------
|
|
|
|
To capture test coverage information you can run:
|
|
|
|
.. code-block:: sh
|
|
|
|
$ coverage run --branch manage.py test
|
|
|
|
To view the coverage data use:
|
|
|
|
.. code-block:: sh
|
|
|
|
$ coverage report -m
|
|
|
|
The coverage configuration is in :file:`.coveragerc`. Add new apps to the
|
|
`source` configuration in the `[run]` section of that configuration file.
|