On 30/06/12 14:24, Christian Aistleitner wrote:
> In our case, Object A is the object we want to test.
> B is an implementation of DatabaseBase.
> B' is a mock implementation of DatabaseBase.
> C is the load balancer / wfGetDB(...) / ... whatever layer you choose.
> 
> Typically, mocking the database is a huge issue, and hardly
> feasible. One would have to abstract database access above the SQL
> layer (separate methods for select, insert, ...) to be able to get a
> meaningful and usable interface for the tests.
> 
> But wait!
> 
> We already have all that ;-)

You still need to implement some complex SQL logic.


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to