Running MapFish Server Tests

This page is about running the MapFish server tests. For the client tests, you can run them by accessing the source:trunk/MapFish/client/mfbase/mapfish/tests/tests-wrapper.html file.

Running Pylons based tests

First, install MapFish server. The Pylons based tests are using a small Pylons application in the MapFish/server/python/testapp directory. Get inside that directory and install the required dependency using setup.py:

cd /path/to/MapFish/server/python/testapp
python setup.py develop

You should have the nosetests command available. The tests are simply run by invoking the command (still in the testapp directory):

nosetests --with-pylons=test.ini

On success, it should show something like

Ran 6 tests in 0.798s

OK

More information about running Pylons tests is available on the Pylons wiki

Running Pure Python tests

There is not such tests yet. With nose, it should just be a matter of creating a test directory inside mapfish server and running nose from there.