Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Art of Unit Testing

Although having a regression suite is certainly a compelling benefit of testing, testing, in my opinion, pertains to more than detecting regressions.

Writing tests:
  • gives you immediate feedback about the quality of your design ideas;

  • encourages you towards code that is both loosely coupled and highly cohesive;

  • adds an executable specification of the what the code should do; and,

  • lets you know when you've done enough, discouraging gold plating and from adding functionality until deemed necessary (because YAGNI!).




Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by astanoAug 16, 2018 07:50 AM 0 98 Aug 16, 2018 07:50 AM
Last Post: astano
[Java] by SIM-1947090Nov 27, 2017 01:13 AM 4 156 Nov 27, 2017 01:13 AM
Last Post: SIM-1947090
[Java] by gatermannNov 27, 2016 10:28 PM 2 121 Nov 27, 2016 10:28 PM
Last Post: gatermann