Hacker News new | ask | show | jobs
by janekk 4691 days ago
I'm in the 'something similar' camp. This is functional testing. I use Selenium, an open source library for automating browsers via plugins.

Personally I find it much more useful than unit/integration tests because while those test the programmer's understanding of his own code, functional tests actually drive the app, perform normal user actions by driving the GUI. For example, you could have all of your unit tests passing but without functional tests, your OK button may appear off-screen and you wouldn't know.

It is annoying when you make changes to your app because test runs take much longer than unit tests, so I have one general test that I run after a refactor, and then a full suite that runs after commit.