File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
389402Deploying
390403~~~~~~~~~
Original file line number Diff line number Diff line change 77envlist = py26, py27, py32
88
99[testenv]
10- commands = {envbindir}/python -m unittest discover []
10+ commands = {envbindir}/python -m unittest discover -v []
1111deps =
1212
1313[testenv:py26]
14- commands = {envbindir}/unit2 discover []
14+ commands = {envbindir}/unit2 discover -v []
1515deps = unittest2
1616basepython = python2.6
1717
1818[testenv:py27]
19- commands = {envbindir}/python -m unittest discover []
19+ commands = {envbindir}/python -m unittest discover -v []
2020deps =
2121basepython = python2.7
2222
2323[testenv:py32]
24- commands = {envbindir}/python -m unittest discover []
24+ commands = {envbindir}/python -m unittest discover -v []
2525deps =
2626basepython = python3.2
You can’t perform that action at this time.
0 commit comments