Version 17 (modified by 8 years ago) ( diff ) | ,
---|
Trac Functional Tests
Automated functional tests are integrated in the test suite (see TracDev/UnitTests). They are formed by executing a series of unit tests. For detailed informations about functional tests, see:
These functional tests do not replace manual testing.
Extra dependencies
Those packages can be installed with pip
:
pip install twill pip install lxml
Note that one test requires that the svn
program can be executed.
Windows specific dependencies
For lxml
, the latest version is not always easy-installable for Windows, so you will have to download a somewhat older version from PyPI:
There's also an additional dependency on Windows:
The usual install method will work:
pip install fcrypt
If fcrypt
is not installed, you will get the following error when running the tests with Trac 0.11:
"Exception: Unable to setup admin password"
or this warning starting with Trac 0.12:
Warning: cannot parse password for user "crypt" without the "crypt" module
Running the tests
To run the functional tests, execute:
PYTHONPATH=. python ./trac/tests/functional/__init__.py
or:
make functional-test
This is starting from Trac 0.12, as Trac 0.11 has no Makefile.
Discussion / Feedback
Something to consider here: using twill's wsgi_intercept capability, and making these part of the unit tests.
Attachments (1)
-
244-for-23.zip
(61.8 KB
) - added by 15 years ago.
Set of files from the Python 2.4.4 standard library needed for running the functional tests with Python 2.3
Download all attachments as: .zip