Xavier Morel 11ba4689b1 [IMP] running speed of some tests & new testcase type
Some tests (e.g. mail) have expensive and significant DB setup for a
number of small and cheap tests. Using a TransactionCase, the DB setup
far dominates the tests themselves, by up to 10x (mail unit tests take
~130s on my machine, the tests themselves take ~15s).

The SavepointCase introduced here is an hybrid of SingleTransactionCase
and TransactionCase: it uses a single transaction for all tests in a
class, but each test case is isolated by a rollbacked savepoint. This
allows a common DB setup (via setUpClass) while keeping independent

TransactionCase should remain the primary test case superclass, but
SavepointCase can be a fair optimisation when setup costs far dominate.
2015-06-23 16:38:14 +02:00
addons/test_translation_import [MERGE] Forward-port saas-3 up to 9b55532 2014-08-14 14:37:42 +02:00
__init__.py [IMP] phantomtest helper 2014-02-09 23:39:17 +01:00
common.py [IMP] running speed of some tests & new testcase type 2015-06-23 16:38:14 +02:00
phantomtest.js [FIX] phantomjs 2.0 compatibility 2015-02-26 15:08:17 +01:00