Skip to content

Commit d033e41

Browse files
Updated test instructions
1 parent b1a07da commit d033e41

2 files changed

Lines changed: 23 additions & 10 deletions

File tree

README.rst

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,25 @@ Using Templates from the Template Engine
379379
Tests
380380
~~~~~
381381

382-
.. code:: python
383-
384-
virtualenv venv
385-
source venv/bin/activate #or . ./activate.sh
386-
python setup.py install
387-
python -m unittest discover -v
382+
Prerequisites:
383+
384+
Mac OS X Prerequisite: `xcode-select --install`
385+
`brew update`
386+
`brew install pyenv`
387+
`pip install tox`
388+
Add `eval "$(pyenv init -)"` to your profile after installing tox, you only need to do this once.
389+
`pyenv install 2.6.9`
390+
`pyenv install 2.7.8`
391+
`pyenv install 3.2.6`
392+
`pyenv local 3.2.6 2.7.8 2.6.9`
393+
`pyenv rehash`
394+
`virtualenv venv`
395+
`source venv/bin/activate #or . ./activate.sh`
396+
`python setup.py install`
397+
398+
Run the tests:
399+
400+
`tox`
388401

389402
Deploying
390403
~~~~~~~~~

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
envlist = py26, py27, py32
88

99
[testenv]
10-
commands = {envbindir}/python -m unittest discover []
10+
commands = {envbindir}/python -m unittest discover -v []
1111
deps =
1212

1313
[testenv:py26]
14-
commands = {envbindir}/unit2 discover []
14+
commands = {envbindir}/unit2 discover -v []
1515
deps = unittest2
1616
basepython = python2.6
1717

1818
[testenv:py27]
19-
commands = {envbindir}/python -m unittest discover []
19+
commands = {envbindir}/python -m unittest discover -v []
2020
deps =
2121
basepython = python2.7
2222

2323
[testenv:py32]
24-
commands = {envbindir}/python -m unittest discover []
24+
commands = {envbindir}/python -m unittest discover -v []
2525
deps =
2626
basepython = python3.2

0 commit comments

Comments
 (0)