anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00020
Re: PostgreSQL testsuite
2009-04-02 klockan 00:52 skrev Sander van Schouwenburg:
> Ik heb dit opgelost door 2 connectie instanties te maken, en het
> connecten/disconnecten/reconnecten op de 2e te testen. Toen kreeg ik
> overal errors dat de resource niet geldig was. Toen maar getest of de
> code voor meerdere simultane connecties (op sqlite) klopt, maar dat deed
> het wel (testcode behouden).
[Switching to English]
It looks like the setup and teardown of database connection should be done
in *test suites*, not in unit tests themselves (if I follow the example
mentioned in the PHPUnit documentation). However, at this point I don't know
how to properly create unit test suites (so that you can run *all* tests for
a module at once, or even *all* tests of *all* modules at once), and how to
integrate this into the Anewt codebase. I must admit I haven't closely
looked into this though. Feedback welcome :)
— Wouter
Attachment:
signature.asc
Description: Digital signature
Follow ups
References