Comments on: The Purpose of Unit Testing https://simpleprogrammer.com/the-purpose-of-unit-testing/ Sun, 04 Mar 2018 21:02:13 +0000 hourly 1 https://wordpress.org/?v=7.0 By: Are you doing Effective Testing? - Vaibhav M. Gawali https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-417 Sun, 04 Mar 2018 21:02:13 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-417 […] The purpose of unit testing […]

]]>
By: Introduction to Test Driven Development (TDD) and Unit Testing! - Usersnap https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-416 Wed, 02 Aug 2017 11:46:20 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-416 […] is a huge difference between writing unit tests and understanding unit testing and test-driven […]

]]>
By: Andrei Streltsov https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-415 Mon, 18 Apr 2016 09:46:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-415 Unit testing is testing at a unit (module) level.
That’s all there is to it.
Otherwise it would be called differently. Like test driven design or something.

The most value of unit testing (and any other kind of automated testing) is in detecting regressions quickly. Just because design quality correlates with testability doesn’t mean unit testing is a good way to design systems.

I have nothing against test-first development. Just try to actually analyze the problem and let THAT drive the design and shape the system before writing any code.

]]>
By: Karthik Swot https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-414 Mon, 08 Jun 2015 10:50:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-414 Gud Article to start Unit Testing…

]]>
By: jsonmez https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-413 Thu, 09 Apr 2015 03:42:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-413 In reply to matthew smithers.

Hah. Good comparison.

]]>
By: matthew smithers https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-412 Mon, 06 Apr 2015 21:53:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-412 So basically, TDD is like using training wheels. If the code is already written, it’s like putting the training wheels on a motorcycle. 😉

]]>
By: jsonmez https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-411 Mon, 02 Mar 2015 18:00:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-411 In reply to Simone.

Excellent. Glad I could help.

]]>
By: Simone https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-410 Sun, 01 Mar 2015 07:36:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-410 Thank you John for this enlightening article. I have been struggling with unit testing for a while now. Your explanation about the value is a real eye opener. We’re so focussed on getting the tests and the code coverage, but we write most of our tests afterwards. And by then we’re struggling to get any tests because our code is not loosely coupled enough. I now understand that we have the wrong idea about what a unit test really is. I only wished I had read this earlier, because we just had a team discussion about it. Think we need another one, I will use this article for it.

]]>
By: kundrata https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-409 Fri, 31 Oct 2014 17:11:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-409 In reply to BigAl73.

I can see myself doing test driven development for my code at home, alongside using internet explorer because it’s fun and reading terms of service when installing some application.

]]>
By: BigAl73 https://simpleprogrammer.com/the-purpose-of-unit-testing/#comment-408 Thu, 31 Oct 2013 16:16:00 +0000 https://simpleprogrammer.com/2010/10/15/the-purpose-of-unit-testing/#comment-408 Lol, I came here to try to understand why I don’t bother with TDD. You have convinced me more than ever that unit testing is a useless task used to help bad coder design their code better :~

]]>