[sup-talk] Unit tests

Ismo Puustinen
Wed, 12 Dec 2007 20:51:11 -0000

Hello,

I would like to contribute to Sup development by writing some unit
tests. In addition to the normal benefits (refactoring, regression
catching, documentation) the tests might help the Sup community
to report bugs: a backtrace isn''t as helpful as a unit test that
deterministically leads to a failed assert or a crash. :-)

I wrote the first test (patch attached) to test the message.rb
file. The tests are run by simply saying "rake test" in the Sup
source code root directory. If you feel that unit tests might
prove useful, I''ll be happy to write some more of them.

--
Ismo Puustinen <ismo at iki.fi>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unit_test.diff
Type: application/octet-stream
Size: 12417 bytes
Desc: not available