Skip to content
Myr

Expanding contribution documentation (#1883)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- README updated with link to CONTRIBUTING.rst - CONTRIBUTING.rst has instructions on running code coverage

authored by Josh · committed by David Lord · parent e048aa4 · Browse files · 2 files+21 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+21 added−0 removed

  • other:+21 added−0 removed

2 files+21 added−0 removed

modified:CONTRIBUTING.rst+19 added
66 unmodified lines
67 pip install tox6869The ``tox`` command will then run all tests against multiple combinations70Python versions and dependency versions.7172Running test coverage73---------------------74Generating a report of lines that do not have unit test coverage can indicate where75to start contributing. ``pytest`` integrates with ``coverage.py``, using the ``pytest-cov``76plugin. This assumes you have already run the testsuite (see previous section)::7778 pip install pytest-cov7980After this has been installed, you can output a report to the command line using this command::8182 py.test --cov=flask tests/8384Generate a HTML report can be done using this command::8586 py.test --cov-report html --cov=flask tests/8788Full docs on ``coverage.py`` are here: https://coverage.readthedocs.io89
modified:README+2 added
35 unmodified lines
36 `py.test` testing tool:3738 $ py.test3940 Details on contributing can be found in CONTRIBUTING.rst4142 ~ Where can I get help?4344 Either use the #pocoo IRC channel on irc.freenode.net or45 ask on the mailinglist: http://flask.pocoo.org/mailinglist/
4 unmodified lines