= Testing = "A bug is a test case you haven't written yet" [[BR]] "Unit Tests allow merciless [http://diveintopython.org/refactoring/refactoring.html refactoring]" This page defines what our current approach versus our [wiki:BluePrintTesting BluePrint for future options] [wiki:InstallationGuidelinesDeveloper#TestingSetup] == Doc Tests == Agile documentation which can be run using Web2Py's Admin UI. * e.g. http://127.0.0.1:8000/admin/default/test/sahana/default.py We have a module which uses [http://code.google.com/p/wsgi-intercept wsgi_intercept] & [http://cherrypy.org CherryPy]'s [http://cherrypy.org/browser/trunk/cherrypy/test/webtest.py WebTest]: {{{modules/s3_test.py}}} == Unit Tests == Building the Code Right [http://seleniumhq.org/projects/remote-control Selenium RC] == Continuous Integration == We use the Trac-integrated Bitten to monitor code quality. == Functional Tests == We have integrated [http://seleniumhq.org/projects/core Selenium Core] into /static/selenium so that Functional Tests can be run. Tests can be developed using [http://seleniumhq.org/projects/ide Selenium IDE], if desired. If desired they can be maintained in a Python format using ---- DeveloperGuidelines