* Betr.: " Re: [tryton-dev] Split tests and use SQLite memory database
  (issue224071)" (Sun, 28 Feb 2010 21:58:03 +0100):

> On 28/02/10 12:03 -0800, Ian Wilson wrote:
> > I don't think I really understand how to run or create unit tests in
> > tryton.  I have seen different configuration files for testing versus
> > production versus development in another project though. The parameter
> > db_type exists in the configuration file now. Why can't that be used
> > to pick which database to use for testing? Taking a look at
> > test_tryton.py it seems that the values for the database are hard
> > coded, shouldn't this be read in from a configuration file?
> 
> unittest must run fast otherwise developers don't use it.
> So to be fast, SQLite memory database is the best. But it is also good to run
> it on other databases to check incompatible behavior.

Even if tests are more fast with SQLite I would emphasize on the test with
postgres, since for me it is much more important to have Tryton work
reliable with this backend. I don't care about speed, if I want to get really
reliable results. I never will get them with SQlite.
 
-- 

    Mathias Behrle
    MBSolutions
    Gilgenmatten 10 A
    D-79114 Freiburg

    Tel: +49(761)471023
    Fax: +49(761)4770816
    http://mbsolutions.selfip.biz
    UStIdNr: DE 142009020
    PGP/GnuPG key availabable from any keyserver, ID: 0x89BCA161

Attachment: signature.asc
Description: PGP signature

Reply via email to