[Koha-devel] Unit tests and mock module

Tomas Cohen Arazi tomascohen at gmail.com
Fri Sep 7 14:46:45 CEST 2012


On Fri, Sep 7, 2012 at 9:41 AM, Paul Poulain <paul.poulain at biblibre.com> wrote:
> Hi Koha-devel,
>
> I just pushed t/Members_AttributeTypes.t unit tests that fake the
> database. The test here could be redundant with t/db_dependent tests
>
> I feel we should be aware of that, and :
>  * decide Mock is the way to go, and promote using of Mock, removing
> db_dependent tests (that fail if you don't have a database)
>  * decide we should prefer db_dependent tests and limit the use of Mock
> to specific cases

+1 for Mock.

Regards
To+


More information about the Koha-devel mailing list