Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added mock, coverage and pep8 dep. Added pep8 options #4234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions doc/devel/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,21 @@ The following software is required to run the tests:

- nose_, version 1.0 or later

- `mock <http://www.voidspace.org.uk/python/mock/>`_, when running python
versions < 3.3

- `Ghostscript <http://pages.cs.wisc.edu/~ghost/>`_ (to render PDF
files)

- `Inkscape <http://inkscape.org>`_ (to render SVG files)

Optionally you can install:

- `coverage <http://nedbatchelder.com/code/coverage/>`_ to collect coverage
information

- `pep8 <http://pep8.readthedocs.org/en/latest>`_ to test coding standards

Running the tests
-----------------

Expand All @@ -36,6 +46,13 @@ The script can take any of the usual `nosetest arguments`_, such as
``--with-coverage`` enable collecting coverage information
=================== ===========

Additionally it is possible to run only coding standard test or disable them:

=================== ===========
``--pep8`` run only PEP8 checks
``--no-pep8`` disable PEP8 checks
=================== ===========

To run a single test from the command line, you can provide a
dot-separated path to the module followed by the function separated by
a colon, e.g., (this is assuming the test is installed)::
Expand Down