stagestatus/docs/tests.rst

20 lines
561 B
ReStructuredText
Raw Normal View History

2017-03-30 02:43:40 +00:00
Tests
=====
2017-04-01 18:22:16 +00:00
Setup
-----
First install the testing requirements with ``pip install -r requirements/testing.txt``
This will install the fake model factory generator, and test runners.
Running
-------
2017-04-02 15:24:43 +00:00
To run tests, simply use ``tox`` this will instal all deps, and run the ``manage.py test`` command, invoke Nose and pickup all the tests.
2017-04-01 18:22:16 +00:00
2017-04-02 15:24:43 +00:00
To start the auto testing, just run ``sniffer`` from the root project directory, this will watch all files in ``stagestatus/`` for changes, and if any ``.py`` files are changed it will re-run the tests with ``tox``.
2017-04-01 18:22:16 +00:00