2015-05-05 19:58:25 -04:00
|
|
|
Testing
|
|
|
|
=======
|
|
|
|
|
2015-06-27 01:53:57 -04:00
|
|
|
Testing is run against multiple Python using ``tox``. It is recommended to use ``pyenv`` to manage
|
|
|
|
your Python version.
|
2015-05-05 19:58:25 -04:00
|
|
|
|
|
|
|
|
2015-06-27 01:53:57 -04:00
|
|
|
Setup
|
|
|
|
=====
|
2015-05-05 19:58:25 -04:00
|
|
|
|
2015-06-27 01:53:57 -04:00
|
|
|
* Ensure git submodules are up to date
|
|
|
|
* Install pyenv
|
|
|
|
* Install Python versions
|
2015-05-05 19:58:25 -04:00
|
|
|
|
2015-06-27 01:53:57 -04:00
|
|
|
```
|
|
|
|
pyenv install 3.4.3
|
|
|
|
pyenv install 3.3.6
|
|
|
|
pyenv install 3.2.6
|
|
|
|
pyenv install 2.7.10
|
|
|
|
pyenv install 2.6.9
|
|
|
|
```
|
|
|
|
|
|
|
|
* *cd* into the *dotbot* repository and set the local Python versions for pyenv
|
|
|
|
|
|
|
|
```
|
|
|
|
pyenv local 3.4.3 3.3.6 3.2.6 2.7.10 2.6.9
|
|
|
|
```
|
|
|
|
|
|
|
|
* Install test requirements
|
|
|
|
|
|
|
|
```
|
|
|
|
pip install tox
|
|
|
|
pyenv rehash
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Running the Test Suite
|
|
|
|
======================
|
|
|
|
|
|
|
|
Once the environment has been setup, simply run the ``tox`` command in the ``dotbot`` directory
|
2015-05-05 19:58:25 -04:00
|
|
|
|