ezsystems/ezpublish — pull request #234 by patrickallaert (2011-11-29 12:03:05+00:00)
Title: Prevent multiple db setup

Using --filter to run a unique test, I realized it took about 1 minute to complete.
Using MySQL-Proxy with https://github.com/patrickallaert/MySQL-Proxy-scripts-for-devs/blob/master/debug.lua, I figured out that database was fully created/dropped about 9 times even for a simple and unique test.
The reason is that the setUp() method is run for every testsuite, independently of the tests that will be performed. It means that for every testsuite (9) inheriting from ezpDatabaseTestSuite, there is a complete destruction/creation.

As a result of that, running a single test takes just a few seconds instead of > 1min.
Running the full testsuite takes about 03:17 instead of 04:10.
Some non gentled tests failed because of that, they have been fixed separately (2nd commit)