[Laszlo-dev] change to lzunit to make it run in swf9

P T Withington ptw at pobox.com
Mon Jul 7 08:14:55 PDT 2008


Sounds reasonable to me.  I never liked the magic test discovery.  I  
think I modeled it on how junit worked, but it doesn't really seem  
necessary.

On 2008-07-05, at 22:12 EDT, Henry Minsky wrote:

> I've got a modification to the lzunit test manager to make it work in
> swf9. It requires a method to be implemented by each
> test case to explicitly add tests to the test case. The method is
> named "addTests", and is called by the test suite manager
> when setting up the test cases.
>
> So for example, in the test/lfc/data/datapointer.lzx test, this method
> is needed to add the tests defined there:
>
>  <method name="addTests">
>     this.addTest("test");
>     this.addTest("test2");
>     this.addTest("test3");
>  </method>
>
> I have a perl script based on the 4.1 conversion script, which will
> automatically scan and modify lzunit test  files to add this method.
>
> I'm going to find all the lzunit callers that I can in the tree, and
> modify them to use the "addTests()" method,
> and will submit a changeset for that. I need to alter the doc chapter
> on test driven programming to explain this,
> and modify the examples there as well.
>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list