improve contributing section

This commit is contained in:
Alan Hamlett 2018-03-11 18:01:20 -07:00
parent a19ab4fce2
commit edb046ec16

View file

@ -127,19 +127,25 @@ Useful Resources:
Contributing Contributing
------------ ------------
Before contributing a pull request, make sure tests pass:: To install the dev environment::
virtualenv venv
. venv/bin/activate
pip install tox
tox
The above will run tests on all Python versions available on your machine.
To just run tests on a single Python version::
virtualenv venv virtualenv venv
. venv/bin/activate . venv/bin/activate
pip install -r dev-requirements.txt pip install -r dev-requirements.txt
pip install tox
Before contributing a pull request, make sure tests pass::
tox
The above will run tests on all Python versions available on your machine.
To just run all tests with your current Python version::
nosetests nosetests
To run only a single test method, specify the test file location, test class,
and test method. For example, to only run the Git project detection test::
nosetests tests.test_project:ProjectTestCase.test_git_project_detected
Many thanks to all `contributors <https://github.com/wakatime/wakatime/blob/master/AUTHORS>`_! Many thanks to all `contributors <https://github.com/wakatime/wakatime/blob/master/AUTHORS>`_!