Software testers, if there’s one thing you could tell a new programmer/developer about testing what would it be? Here’s your chance to add your two cent.
A question posed on Quora reads “What should beginner programmers know about software testing?” Eleven people have responded and answers so far include:
“Even if you have a QA team, it’s your job to test your code. And by test, I mean really test: not just smoke test, test for code coverage, test psychotic edge cases, stress test, load test, test everything. Testing your own code is one way to avoid having fires lit under your ass, which is surely a more comfortable way to go through life.” – Andrew Warinner
“It’s not optional” – K. Scott Helms
“Coming up with test cases before you write your code (test driven development) is a powerful paradigm for producing quality during software development. Write the tests, called unit tests, using one of the available tools like JUnit, NUnit, etc. Get the edge cases, test the happy path and the not happy paths. What should your code do if someone passes in a null value as a parameter? This will make you think about Exceptions before you write your code so that you will develop a exception strategy instead of going back and retrofitting code with no thought about a strategy. Make sure that you run and pass the tests every time you build your code.” – Jack Menendez
“First of all you need to accept the fact that your code contains defects.
That’s always true. But that doesn’t always mean that you’ve messed up. Sometimes defects come from business requirements or some 3rd party libraries, etc. So – don’t treat defects like something personal. Try to work in combination with testers. If you believe that something needs to be checked – you can always ask test team to do that. Usually we (testers) appreciate such testing thoughts a lot, especially if these thoughts have some difficult technical reason and we most probably would miss that.” – Artyom Silivonchik
The response with the most votes comes from Eric Pepke and it’s one you’ll all likely agree with:
“What you should know is that testers are your friends. They’ll find out things that you didn’t. Learn to love it and take delight in fixing bugs.”
What would you tell a brand new programmer? Let us know in the comments or answer on Quora >>>