Skip to content

Commit

Permalink
Add tox infos
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L. <lrq3000@gmail.com>
  • Loading branch information
lrq3000 committed Oct 13, 2015
1 parent 3266adc commit 405dd64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CONTRIBUTE
Expand Up @@ -36,7 +36,7 @@ TESTING
To test functionality on your machine (such as before submitting a Pull
Request), there are a number of unit tests.

To run the tests,
To run the tests for only your Python distribution:

- install `tox`
- `cd` to the root of the `tqdm` directory (in the same folder as this file)
Expand All @@ -56,5 +56,16 @@ nosetests --with-coverage --cover-package=tqdm -v tqdm/
python -m flake8 tqdm/_tqdm.py
```

To run the tests for all Python distributions (better, but more time consuming):

- install `tox`
- install all versions of the Python interpreter that are specified in
[tox.ini](tox.ini). You can use MiniConda to install a minimal setup.
You must also make sure that each distribution has an alias to call
the Python interpreter: python27 for Python 2.7's interpreter,
python32 for Python 3.2's, etc.
- `cd` to the root of the `tqdm` directory (in the same folder as this file)
- run the following command: `tox`

Then wait for the tests to finish, and check your console to see if there's
any issue.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -16,6 +16,8 @@ testsetup:
testcoverage:
nosetests tqdm --with-coverage --cover-package=tqdm -v

allenvtests: tox

installdev:
python setup.py develop --uninstall
python setup.py develop
Expand Down

0 comments on commit 405dd64

Please sign in to comment.