1 DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER
2 DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER
4 Running the test suite will drop your current database, this is
5 to be used only on test environment.
7 DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER
8 DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER DANGER
11 First step, you have to start the selenium remote server.
12 untar the 1.0 release of selenium, then
14 cd ~/selenium-remote-control-1.0-SNAPSHOT/selenium-server-1.0-SNAPSHOT
15 java -jar selenium-server.jar -interactive
17 On a debian system using iceweasel and java in /usr/lib/j2re1.5-sun:
18 PATH=/usr/lib/j2re1.5-sun/bin:/usr/lib/iceweasel:/bin java -jar selenium-server.jar -interactive
20 Second step, before launching tests, copy file 'config.php.sample'
21 to 'config.php' and edit the file.
23 cp config.php.sample config.php
26 Once configured, run the test suite.
28 # For PostgreSQL: (NOTE: seems no needed)
30 configure ~/.pgpass to allow connection from your account.
32 echo 'localhost:*:gforge:gforge:myadmin' >> ~/.pgpass
38 If you want to run only a specific part, then you can use:
41 phpunit Trackers_AllTests Trackers/AllTests.php
44 To create an empty database for recording a test:
48 ===========================================================================
52 * Requires patch: tests/hack_for_emails.patch
54 When an account has its email address with the form 'log:[a-z]+', then
55 emails are not sent but written in the data/logs directory instead.
56 This is useful to avoid sending/flooding with emails when tests are
57 executed, this has required a small hack in the Gforge code (see utils.php).