Re: stop! .. time for unit tests

Arnaud Limbourg <arnaud-GdXxm9JVFPlWk0Htik3J/[email protected]> Tue, 23 Aug 2005 20:47:28 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Lukas Kahwe Smith wrote:

> I think the best way to approach this is to go at it in simple steps. 
> Writing out all necessary unit tests in one go is going to be fairly 
> depressing.
>
> So we should try and come up with a set of core tests for the client 
> and admin part.
>
Makes sense.

> For the admin part we should probably be able to fairly quickly cover 
> the key aspects of the LiveUser_Admin class and then maybe the storage 
> layer (with a bunch of different param configurations). That should 
> make us pretty solid over there. Maybe add some testing in regards to 
> the recursive handling of subgroups and implied rights.
>
> For the client we should be able to test the basic object creation 
> again. beyond login procedure, if the status is set etc. we also need 
> to check if rights and group checks work. finally we need to check if 
> the session management and remember me cookie works.

Keep the hard part for the end ;)

Arnaud.