Please, Don't Unit Test GUIs

24 Oct 2007

I'm on the side of thinking that believes companies spend way too much money unit testing GUIs when their business logic (their real value, most of the time) hasn't even got great JUnit coverage. I'm not completely against testing GUIs, but let's get our priorities straight -- make sure the business logic is tested first, then we'll talk about the UI. This developer has an article that shares some of the same sentiments and even mentions how Martin Fowler has frequent "Don'ts" but then leaves it to the user to track them down.