2013-08-22 08:17:59 +00:00
|
|
|
Testing
|
2014-02-21 19:54:54 +00:00
|
|
|
=======
|
2013-08-22 08:17:59 +00:00
|
|
|
|
2013-08-22 12:31:33 +00:00
|
|
|
Requirements
|
2014-02-21 19:54:54 +00:00
|
|
|
------------
|
2013-08-22 12:31:33 +00:00
|
|
|
|
2014-02-22 09:04:41 +00:00
|
|
|
The library needs ``Django`` and ``requests`` and ``nose``, ``mock``,
|
2014-05-07 20:44:17 +00:00
|
|
|
``south`` and ``testfixtures`` libraries to run tests.
|
2013-08-22 12:31:33 +00:00
|
|
|
|
2014-02-21 19:54:54 +00:00
|
|
|
::
|
2013-08-22 12:31:33 +00:00
|
|
|
|
2014-02-21 19:54:54 +00:00
|
|
|
pip install Django
|
|
|
|
|
pip install requests
|
2013-08-22 12:31:33 +00:00
|
|
|
pip install nose
|
|
|
|
|
pip install mock
|
|
|
|
|
pip install south
|
2014-05-07 20:44:17 +00:00
|
|
|
pip install testfixtures
|
2013-08-22 12:31:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Running tests
|
2014-02-21 19:54:54 +00:00
|
|
|
-------------
|
2013-08-22 12:31:33 +00:00
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
::
|
2014-02-21 19:54:54 +00:00
|
|
|
|
2014-02-22 09:28:06 +00:00
|
|
|
pip install coverage
|
2013-08-22 12:33:24 +00:00
|
|
|
nosetests --with-coverage --cover-package=embed_video
|
2013-12-21 16:12:04 +00:00
|
|
|
|
|
|
|
|
|