RE: jsUnit, Cross Browser Support, Asynchronous Data

> I am also considering modifying the means by which test 
> functions in a 
> test document are exposed. While using the convention that 
> the names of 
> all test functions begin with "test" is convenient, it 
> appears that this 
> may limit the ability of other browsers such as IE 5.13 on Macintosh 
> from using jsUnit. It seems that an easy approach would be to 
> expose the 
> test functions in an array which could be queried by jsUnit. 
> This would 
> eliminate this dependency and perhaps allow more browsers to 
> use jsUnit.

Earlier versions of JSUnit did use an array to determine the test functions.
The imitation "reflection" that was implemented since other xUnit
implementations (specifically JUnit) did not require explicit test
identification and the explicit test definition was dropped.

It might be useful to come up with a hybrid approach, allow the user to
provide an explicit test declaration to support more browsers, or use
implicit test discovery for existing tests or for ease of use.

Received on Monday, 1 April 2002 11:27:58 UTC