django-embed-video/docs/development/testing.rst

41 lines
613 B
ReStructuredText
Raw Normal View History

2013-08-22 08:17:59 +00:00
Testing
==============================================
2013-08-22 12:31:33 +00:00
Requirements
-------------
You need ``nose``, ``mock`` and ``south`` libraries to run tests.
::
pip install nose
pip install mock
pip install south
Running tests
------------------
2013-08-22 08:17:59 +00:00
Run tests with this command:
::
2013-08-22 12:33:24 +00:00
nosetests
2013-08-22 08:17:59 +00:00
Be sure to run it before each commit and fix broken tests.
Run tests with coverage:
::
2013-08-22 12:33:24 +00:00
nosetests --with-coverage --cover-package=embed_video
Testing HTTPS
-------------
To test HTTPS on development server, `follow this instructions
<http://www.ianlewis.org/en/testing-https-djangos-development-server>`_.