The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Unit Testing is a Coding Task James

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sam Gentile

Posts: 1605
Nickname: managedcod
Registered: Sep, 2003

Sam Gentile is a Microsoft .NET Consultant who has been working with .NET since the earliest
Unit Testing is a Coding Task James Posted: Jun 15, 2004 7:29 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Sam Gentile.
Original Post: Unit Testing is a Coding Task James
Feed Title: Sam Gentile's Blog
Feed URL: http://samgentile.com/blog/Rss.aspx
Feed Description: .NET and Software Development from an experienced perspective - .NET/CLR, Rotor, Interop, MC+/C++, COM+, ES, Mac OS X, Extreme Programming and More!
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Sam Gentile
Latest Posts From Sam Gentile's Blog

Advertisement

James Newkirk attempts to justify Microsoft's rationale, responding to Peter and others, in including Unit Testing in VS Team System and not VS by speaking about the consistent experience of using the suite of tools versus individual tools that can be used today and going forward like NUnit and NUnitAddin. While this is all true and defensible, he asks “Why is unit testing singled out? What about the other tools, like source code control, and static analysis, profiling, etc? Certainly these tools are valuable during development. So, that said why focus just on unit testing?” 

Well, I'll answer. It's pretty obvious to me. It's not because TDD is some trendy thing (as some people have suggested in the comments). Its because Unit Testing is an individual thing, not necessarily a team thing and individual developer things go in Visual Studio, plain and simple. What do I mean? I don't view Unit Testing (ala NUnit), and coding as separate things. They go together and can't be pulled apart. Not because TDD is trendy, but because its the right way to develop software. I express my intention in the test, I write some test code to test my intention, I write some code to fulfill that intention and I keep developing, testing, refactoring in that way to fulfill that intention. Its like saying Refactoring doesn't belong in VS but should be in a separate product. Coding, Refactoring, Testing is a constant developer's task, inseparable. The “other” tools like source control, profiling, etc, are, in my mind, “team” activities that are done outside the individual. You don't profile for instance until you need to do it (premature optimization anyone?) Do you need the “Team” tools if you are a team of one? No, but you sure need unit testing facilities. Sure, the unit tests become a group activity and each individual's unit tests get incorporated into the suite that gets run, but you still have the fact that basic unit testing is part and parcel of each individual writing good solid code and if it's not included, then it's too much friction. Rightly or wrongly, Microsoft, with Visual Studio, influences the minds of millions of developers with whats in the product. A lot of them may not develop this skill and go out and fetch some separate tool. Microsoft has a chance to do the right thing here. Just do it.

Read: Unit Testing is a Coding Task James

Topic: Unit Testing in Visual Studio in Visual Studio 2005 Previous Topic   Next Topic Topic: The Promise of TDD

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use