[Laszlo-dev] You too (yes, I'm talking to you) can write automatically run regression tests
Henry Minsky
hminsky at laszlosystems.com
Thu Apr 16 07:38:54 PDT 2009
I wanted to remind people that it's easy and fun to write (headless)
regression tests that will be run automatically on every build,
via the "ant lztest" command.
The way it works is that you
[1] just write a test that uses the "lztestmanager" library, and put a
comment at the beginning of
the file that says
covers-tags: smoketest
[2] add your test file to the list in test/lztest/smoketest.txt
Then every time the build runs "ant lztest", your test gets run in the rhino
test harness.
It's been awhile since anyone added any regression tests here, and there are
of course things that the
rhino environment can't test, but for basic LFC functionality, it would be
great if when you fix a bug with
something in the core, to write a little test and add it here!
For example, look at the test file
test/lztest/lztest-static-attrs.lzx
<canvas>
<include href="lztest/lztestmanager.lzx" />
<!--
covers-tags: class smoketest
tests for static methods and attributes of lzx classes
-->
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090416/f9ff8516/attachment.html
More information about the Laszlo-dev
mailing list