[[TOC]] == Testing Setup == For doing [wiki:DeveloperGuidelinesTesting Testing] you will also need these things installed in your Python: === !PyLint === [http://www.logilab.org/project/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 [http://seleniumhq.org/projects/remote-control Selenium RC] for Unit Testing (we also, separately, use an integrated [http://seleniumhq.org/projects/core 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 [http://groups.google.com/group/web2py/msg/d8c9fd6008029f6b seleniumtest.py] to site-packages This requires a Java 6 Runtime: * http://java.sun.com/javase/downloads The [http://seleniumhq.org/projects/ide Selenium IDE] is also useful to have installed in Firefox: * http://release.openqa.org/selenium-ide/1.0-beta-2/selenium-ide-1.0-beta-2.xpi ==== !CherryPy ==== We treid to use [http://cherrypy.org CherryPy]'s [http://cherrypy.org/browser/trunk/cherrypy/test/webtest.py WebTest] for Doc Tests & Unit Testing.[[BR]] Windows: * http://download.cherrypy.org/cherrypy/3.1.1/CherryPy-3.1.1.win32.exe 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 [http://code.google.com/p/wsgi-intercept wsgi_intercept]: {{{ easy_install wsgi_intercept }}} ---- InstallationGuidelines