November 3, 2015 at 10:22 am #9859DaraghParticipant@daraghm
I was chatting to a developer recently (about testing) and the topic of unit test came up. He says he hates unit tests and try’s to avoid doing them. I started reading about this and it seems that developers do not generally deliver unit tests with their code. Do you think that this is the case?
Do you hate writing unit testing as much as he does? Or is it just a dev thing?November 18, 2015 at 3:48 pm #10079OliverParticipant@oliver
I think that unit testing is poorly understood by developers. Many see it as a waste of time, merely an extra proof that their software works
which of course it does
For many Unit testing is not attempt to find bugs but a verification using golden path test data that the Software is ready for the next stage.
Good unit tests make great Automation test cases which is a fact that agile and TDD/BDD teams are picking up on especially if they are using continuous deployment.November 19, 2015 at 9:22 pm #10111JesperParticipant@jesper-lindholt-ottosen
I have seen developers do great unit tests, and in some organisations that’s just how it is. Test driven development, Behavior-driven development up front… Look into the books on how Google and Microsoft tests. (Whittaker and Page, respectively).November 20, 2015 at 1:17 pm #10123PaulParticipant@paulcoyne73
I agree that too many coders don’t believe that they should test their code, and they do so grudgingly and using the happy-path. This is doubly worrying, because that rose tinted view that everything willbe alright will also apply to their code, and the validation, error-handling and associated logic will be underdeveloped. I see exactly this all too often.
Part of the problem is that we create too-rigid roles in which coders see testing as something that testers do. The truth is that we are all developers with a range of outlooks and skills. But it’s not been developed till it’s been written and tested, and the testing mindset is ESSENTIAL for a ‘coder’ almost as much as it is for a ‘tester’. All too often this is not the case and we get code handed over that cannot handle real life.November 25, 2015 at 10:25 am #10158NielsParticipant@nielsmx
Read “Why Most UnitTesting is Waste” by James Coplien: http://www.rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste.pdf
In the ‘Cleanroom Approach to Software Development’, unit testing was considered uneconomical, which it proved to be. – read Allan M. Stavely’s book “Toward Zero-Defect Programming”
- You must be logged in to reply to this topic.