In these short e-mails we have convinced me to try the testing framework. I plan to write some tests tonight or tomorrow night.

On Sep 15, 2005, at 12:12 PM, Geert Bevin wrote:

There are lots of reasons.

In my experience tests are not worth the effort because my code usually works as intended, and most bugs I find in my code would not be found without exhaustive unit tests. I don't know if it's a property of my code in particular, or luck, or what it is.


The purpose of this framework is to make automated testing just as easy as manual testing.


Second, writing tests is not exciting. It feels good to see the green bar but it's still boring work.


Maybe not the first time, but they give you a contract that you can quickly test when you maintain your application. In time, manual testing is a lot more boring since you end up doing all the things over and over again, possibly forgetting some of the tests here and there.


Third, most software I write is complex and object-oriented and I'd have to write huge amounts of mocks just to get started with testing. I don't have enough time to write code as it is, let alone mocking it all out, creating dozens or hundreds of interfaces, to find minor bugs.


You don't need to do any of this in the RIFE testing framework, all your code for the back-end remains the same. No need to write any mocks. You just test outside of the container to see if your application works as is should from a browser point of view.


Fourth, I don't know how to test web stuff. I could probably find somewhere about suggestions for how to test interactive websites, but I haven't done it.


Just try the new framework, it should be pretty easy to understand from the existing examples and I personally find it a tad addictive since it's so easy to build up your end-user functionality contract now.

I don't intend to 'convince' you, but imho you end up testing manually anyway, so why not write it down in code that you can run as much as you like in an automated fashion?

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to