4 ms·
I am not so big on unit tests because I feel I mostly write glue code in rails were the problems are really not very hard. What I really like is Selenium test
by nasmorn 15y ago
I am not so big on unit tests because I feel I mostly write glue code in rails were the problems are really not very hard.
What I really like is Selenium test that work like manual testing and I thus feel they just automate something I would need to do in any case.
- Xurinos 15y agoI agree; I like the idea of Selenium for web GUIs. I remember wanting to write my own similar tester for Win32 GUIs a while back, but I ultimately did not see enough value in it. For the same reason, I do not use Selenium: you have to completely "rewrite" the tests to adapt to small interface changes. So I wrote up test plans for humans to run, and they could adapt to the changes; it was faster than writing an AI. ;) At an old job, we had what was called "random testing". This was a time to relax and take a few hours to pound at the application with whatever we could think of. With luck, someone would go ahead and attempt to automate those tests. One of our favorite "random" tests was to start some complicated process and then shake the window all around the screen to see if it would crash -- sometimes it did! It forces people to rethink their threading approaches. Another fun trick is closing an app mid-processing; does it exit gracefully?