Ya seriously. It bothers me though that the idea of automated testing is seen as a "luxury" to many testers... they work with computers for fucks sake.
Yes, and running automated tests requires configuration (and knowledge on how to do that), both for your testing tools and the product you're testing. Voila, welcome back to the "there will always be darkness" block from OP.
Managers want to look as if stuff is flowing out the door
Developers want to be seen as not taking too much time and making the code hard to work on means that scaling becomes harder. Original developers become the focal point of all new work meaning they're "important."
Any good project should within reason scale and survive the bus test [re: your lead developer is hit by a bus, how fucked are you?].
The problem is scalability is often a problem for future you. But present you doesn't care about that.
When explaining the benefits of automated testing to skeptical developers, the concept that seems to get the most traction is that tests are "features" written for the developers. It's creating a magic button that will tell them whether or not the code they've just written will result in them being woken up at 4 am to fix a live site issue.
My biggest barrier to automated testing is that 90% of my code is either interacting with a database or passing views / json to a web browser.
At the Controller level, it's kind of pointless to test that "return View("Index")" returns a view called Index. We already know that's going to work, but now we have the added overhead that if we ever change it to "return View("Home"), the test is going to complain.
And at the Database level, the part that's going to go wrong (the SQL / Entity Framework statements) is abstracted away by Mocks and Fakes. So... what am I supposed to do?
The problem in my experience has always been a lack of 1. time and 2. give a shit by the people prioritizing tasks. Sure if I ran my own business and had no deadlines ever I could write perfect code with perfect automated tests and doves would fly out of my ass.
Instead I've got 5 different department heads all asking for 5 different features to be added to 5 different apps and they want it done 5 times faster than it would take to do it perfectly correct.
Remember the good old days? When "alpha" was the term for software you haven't shown to customers yet, let alone sold to them as an "early access" perk?
View all comments
Show parent comment
31
u/quangdog Apr 29 '14
Testing? QA? That's what end users are for.