EDOS test runner README
François Déchelle <fdechelle_chez_mandriva.com>Content
This module contains the EDOS test runner. The EDOS test runner runs tests described by an XML file and reports test results using report 'plug-ins'. Several report 'plug-ins' are available, using for instance HTTP POST requests.Prerequisites
You need the following packages:- python
- python-pyxml
- python-rpm (if running on a RPM based distribution)
- python-cherrypy (only for the debug server)
Running
To run the test runner, you must first make sure that the Python package 'edostestrunner' can be found by the Python interpreter. If you have installed the EDOS test runner in a standard directory, for instance by using a package (RPM or Debian) version of the EDOS test runner, setting PYTHONPATH is not mandatory and you can skip paragraphe 3.1.Setting PYTHONPATH
If you have installed the package in a non-standard directory, you must set the PYTHONPATH environment variable. The value to give to PYTHONPATH is different if you are using directly the source tree or if you have installed the EDOS test runner.Running from the source tree
Setting PYTHONPATH can be done by:export PYTHONPATH=PATH_TO_SOURCE_TREE
export PYTHONPATH=/var/tmp/edostestrunner-1.0.2alphaRunning after installing test runner
See paragraph 4 for installation instructions. Setting PYTHONPATH can be done by:export PYTHONPATH=PREFIX/lib/python2.4/site-packages
python setup.py install --prefix=$HOME/projects/EDOS/install
export PYTHONPATH=$HOME/projects/EDOS/install/lib/python2.4/site-packages
Running test runner
After setting PYTHONPATH, you can run the test runner with:edos-runtest --file=<<test XML file>>
edos-runtest --help
Installation
This module uses Python distutils tools. To install it under directory PREFIX:python setup.py install --prefix=PREFIX <<other install options>>
python setup.py install --help
Configuration
The test runner can use a configuration file, that can either- reside in standard locations (namely
- be passed on command line with option -c FILE or --config-file=FILE
================================================== [Testing] # Base directory where tests will be run #localstatedir=/var/lib #testdir=%(localstatedir)s/edos-testrunner/test [Reporting] # The list, separated by ',', of test reporters reporter=stdout1,xwiki1 #reporter=StdoutTestReporter [stdout1] class=StdoutTestReporter [xwiki1] class=XwikiTestReporter # Hostname of the reporting service server=mandriva.edos-project.org #server=stalker # Port used by the reporting service port=80 #port=8080 [Identification] # Registered username for the reporting service username=noname ==================================================
Debug reporting service
For debugging, a reporting server can be found in tests/debugserver.py To run it:python debugserver.py
Version 1.13 last modified by FrancoisDechelle on 28/05/2007 at 16:09
Document data
Attachments:
No attachments for this document
Comments: 0