[Cosmo-dev] [Proposal] Use Windmill for JS Unit testing

Ted Leung twl at osafoundation.org
Fri Mar 30 15:44:48 PST 2007


On Mar 30, 2007, at 4:32 PM, Mikeal Rogers wrote:

>> Because it copied JUnit?
>
> It's actually a little simpler than JUnit because you don't have  
> the inheritance requirements that JUnit has.

That's not saying much...

>
> The issue is this.
>
> In order for windmill to report results we _must_ replace the  
> jsunit assertion methods, there isn't another way to do it.
>
> Thanks Bobby for showing me http://svn.osafoundation.org/server/ 
> cosmo/trunk/cosmo/src/test/unit/js/cosmo/datetime/test_timezone.js .
>
> I was looking at http://svn.osafoundation.org/server/cosmo/trunk/ 
> cosmo/src/test/unit/js/cosmo/ui/widget/ and the examples on the  
> jsunit website.
>
> If we can find a way to dynamically replace the regular jsunit  
> assertion methods with our own I think we can do this all pretty  
> easily.

Well js is one of them thar dynamical language things, so it ought to  
be possible.  Should I reassign the jsunit related bug(s) to you or  
to Adam?

Ted


More information about the cosmo-dev mailing list