Version 2 (modified by 13 years ago) ( diff ) | ,
---|
Table of Contents
Testing Setup
For doing Testing you will also need these things installed in your Python:
PyLint
PyLint can be used to give a report on code quality.
wget http://ftp.logilab.org/pub/common/logilab-common-0.37.2.tar.gz tar zxvf logilab-common-0.37.2.tar.gz cd logilab-common-0.37.2 python setup.py install wget http://ftp.logilab.org/pub/astng/logilab-astng-0.17.4.tar.gz tar zxvf logilab-astng-0.17.4.tar.gz cd astng-0.17.4 python setup.py install wget http://ftp.logilab.org/pub/pylint/pylint-0.15.2.tar.gz tar zxvf pylint-0.15.2.tar.gz cd pylint-0.15.2 python setup.py install
Old
Selenium
(Selenium is now included in the tree)
We use Selenium RC for Unit Testing (we also, separately, use an integrated Selenium Core for Functional Testing):
easy_install selenium
- http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/selenium-remote-control-1.0-beta-2-dist.zip
- copy
selenium-server.jar
to site-packages - copy seleniumtest.py to site-packages
This requires a Java 6 Runtime:
The Selenium IDE is also useful to have installed in Firefox:
CherryPy
We treid to use CherryPy's WebTest for Doc Tests & Unit Testing.
Windows:
Linux:
wget http://download.cherrypy.org/cherrypy/3.1.1/CherryPy-3.1.1.tar.gz tar zxvf CherryPy-3.1.1.tar.gz cd CherryPy-3.1.1 python setup.py install
This also requires us to install wsgi_intercept:
easy_install wsgi_intercept
Note:
See TracWiki
for help on using the wiki.