On Saturday 19 November 2005 08:36, Mathieu Roy wrote: > There is one guy here at CERN that is actually working on a small perl > program, under the guidance of Yves Perrin, that, in our mind, should > enable to do that.
That's great news! > This would work with WWW Mechanize and allow us to write defines > testcases we can easily run in batch. So before releases, we would be > sure that things like : creating an account, posting a new item etc, > still works. Alright, that's quite a challenge, although surely needed. > Is that the kind of thing you have in mind. No, that's even better than what I had in mind. I was thinking of real unit tests, on a much smaller scale. Those tests should only test one function and check for the results. While this is not comparable to the thing you mentioned above, it would be useful, too. We could check for proper error handling and things like that. Example: function add_hello($string) { return $string."hello"; } A test for this function could look like this: test_add_hello() { assertEqual("hi hello", add_hello("hi ")); } > Any things that could automate debugging of Savane would be > great. Savane can do too many things for a human to test. For sure. :-) Cheers, -- Tobias "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former" -- Albert Einstein
pgpK0nmHGZL19.pgp
Description: PGP signature
_______________________________________________ Savane-dev mailing list Savane-dev@gna.org https://mail.gna.org/listinfo/savane-dev