| | 1 | == Testing Setup == |
| | 2 | For doing [wiki:DeveloperGuidelinesTesting Testing] you will also need these things installed in your Python: |
| | 3 | === Selenium === |
| | 4 | 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): |
| | 5 | * {{{easy_install selenium}}} |
| | 6 | * http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/selenium-remote-control-1.0-beta-2-dist.zip |
| | 7 | * copy {{{selenium-server.jar}}} to site-packages |
| | 8 | * copy [http://groups.google.com/group/web2py/msg/d8c9fd6008029f6b seleniumtest.py] to site-packages |
| | 9 | This requires a Java 6 Runtime: |
| | 10 | * http://java.sun.com/javase/downloads |
| | 11 | |
| | 12 | The [http://seleniumhq.org/projects/ide Selenium IDE] is also useful to have installed in Firefox: |
| | 13 | * http://release.openqa.org/selenium-ide/1.0-beta-2/selenium-ide-1.0-beta-2.xpi |
| | 14 | === !CherryPy === |
| | 15 | We use [http://cherrypy.org CherryPy]'s [http://cherrypy.org/browser/trunk/cherrypy/test/webtest.py WebTest] for Doc Tests & Unit Testing.[[BR]] |
| | 16 | Windows: |
| | 17 | * http://download.cherrypy.org/cherrypy/3.1.1/CherryPy-3.1.1.win32.exe |
| | 18 | Linux: |
| | 19 | {{{ |
| | 20 | wget http://download.cherrypy.org/cherrypy/3.1.1/CherryPy-3.1.1.tar.gz |
| | 21 | tar zxvf CherryPy-3.1.1.tar.gz |
| | 22 | cd CherryPy-3.1.1 |
| | 23 | python setup.py install |
| | 24 | }}} |
| | 25 | This also requires us to install [http://code.google.com/p/wsgi-intercept wsgi_intercept]: |
| | 26 | {{{ |
| | 27 | easy_install wsgi_intercept |
| | 28 | }}} |
| | 29 | === !PyLint === |
| | 30 | [http://www.logilab.org/project/pylint PyLint] can be used to give a report on code quality. |
| | 31 | {{{ |
| | 32 | wget http://ftp.logilab.org/pub/common/logilab-common-0.37.2.tar.gz |
| | 33 | tar zxvf logilab-common-0.37.2.tar.gz |
| | 34 | cd logilab-common-0.37.2 |
| | 35 | python setup.py install |
| | 36 | wget http://ftp.logilab.org/pub/astng/logilab-astng-0.17.4.tar.gz |
| | 37 | tar zxvf logilab-astng-0.17.4.tar.gz |
| | 38 | cd astng-0.17.4 |
| | 39 | python setup.py install |
| | 40 | wget http://ftp.logilab.org/pub/pylint/pylint-0.15.2.tar.gz |
| | 41 | tar zxvf pylint-0.15.2.tar.gz |
| | 42 | cd pylint-0.15.2 |
| | 43 | python setup.py install |
| | 44 | }}} |
| | 45 | |
| | 46 | ---- |
| | 47 | InstallationGuidelines |