You need to sign in or sign up before continuing.
DEVELOPER.md 769 Bytes
Newer Older
William Tisäter committed
1
# Bootstrap manual for developers
2
_Dependencies: tox, nose_
3

William Tisäter committed
4 5
### Testing

6 7 8 9 10 11 12 13 14
For testing we are using tox virtualenv-based Python version testing
and nose as test framwork.

Tox will create virtualenvs for all Python version pygeoip supports
and installs the current working tree using the setup.py install script.
Running the tests requires a couple of sample databases found on the
link below.

Maxmind sample databases for testing can be downloaded here:
15
https://www.defunct.cc/maxmind-geoip-samples.tar.gz (17 MB)
16

William Tisäter committed
17
Extract the tarball in the tests directory and run `tox` from the root directory.
18

William Tisäter committed
19
This requires a machine with Python 2.6 - 3.3 installed and all dependencies mention in the header.
20

21 22
### TL;DR

William Tisäter committed
23
There's a Makefile doing all this for you.
24

William Tisäter committed
25
    make test