[Zope-dev] zwiki ZUnit support added
Simon Michael
simon@joyful.com
22 Nov 2000 14:12:27 -0800
This is great, Lalo! Thanks.
I checked in ZUnit support to ZWiki-cvs, and the first couple of unit
tests. Suddenly, I feel all Extreme!
FWIW, here's how I run the tests. I made a TestRunner called
ZWikiTests, pointing to "Products.ZWiki.TestSuite". I have these rules
in a makefile:
unit-test test:
@wget -nv 'http://<username>:<password>@localhost:<port>/ZWikiTests/manage_startTests' -O TESTOUTPUT
@cat TESTOUTPUT
refresh:
@wget --spider -nv 'http://<username>:<password>@localhost:<port>/Control_Panel/Products/ZWiki/manage_refresh?performRefresh=1&quickRefresh=1'
After making some changes to the product files, I
> make refresh test
200 OK
14:03:17 URL:http://<username>:<password>@localhost:<port>/ZWikiTests/manage_startTests [34] -> "TESTOUTPUT" [1]
.
.
.
Time: 1.329s
OK (3 tests)
This rocks. In fact, as I ran the above it caught a typo in
ZWiki/Tests.py which otherwise you all would have had to deal with.
-Simon