[Laszlo-dev] change to lzunit to make it run in swf9
Henry Minsky
hminsky at laszlosystems.com
Sat Jul 5 19:12:56 PDT 2008
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