Skip to content
Myr

resolve merge conflicts

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parents cb94f4c, 4cd0299 · Browse files · 3 files+28 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

3 files+28 added−0 removed

  • other:+28 added−0 removed

3 files+28 added−0 removed

modified:CONTRIBUTING.rst+22 added
22 unmodified lines
2324Submitting patches25==================2627- Include tests if your patch is supposed to solve a bug, and explain28 clearly under which circumstances the bug happens. Make sure the test fails29 without your patch.3031- Try to follow `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_, but you32 may ignore the line-length-limit if following it would make the code uglier.3334First time setup35----------------3637- Download and install the `latest version of git`_.
49 unmodified lines
8788 cd flask89 pip install --editable .9091Running the testsuite92---------------------9394The minimal requirement for running the testsuite is ``pytest``. You can95install it with::9697 pip install pytest9899Then you can run the testsuite with::100101 pytest tests/102103**Shortcut**: ``make test`` will ensure ``pytest`` is installed, and run it.104105With only pytest installed, a large part of the testsuite will get skipped106though. Whether this is relevant depends on which part of Flask you're working107on. Travis is set up to run the full testsuite when you submit your pull108request anyways.
5 unmodified lines
114115The ``tox`` command will then run all tests against multiple combinations116Python versions and dependency versions.117118**Shortcut**: ``make tox-test`` will ensure ``tox`` is installed, and run it.119120Running test coverage121---------------------122Generating a report of lines that do not have unit test coverage can indicate where123to start contributing. ``pytest`` integrates with ``coverage.py``, using the ``pytest-cov``
10 unmodified lines
134 pytest --cov-report html --cov=flask tests/135136Full docs on ``coverage.py`` are here: https://coverage.readthedocs.io137138**Shortcut**: ``make cov`` will ensure ``pytest-cov`` is installed, run it, display the results, *and* save the HTML report.139140141Caution142=======143pushing144-------
21 unmodified lines
modified:Makefile+4 added
4 unmodified lines
5test:6 pip install -r test-requirements.txt7 tox -e py-release89cov:10 pip install -r test-requirements.txt -q11 FLASK_DEBUG= py.test --cov-report term --cov-report html --cov=flask --cov=examples tests examples1213audit:14 python setup.py audit1516release:
29 unmodified lines
modified:test-requirements.txt+2 added
1tox2pytest3pytest-cov