66366 members! Sign up to stay informed.

Sponsored Links


Resources

.NET Research Library
Get .NET related white papers, case studies and webcasts

News News News Messages: 5 Messages: 5 Messages: 5 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Unit Testing: Can You Repeat Please?

Posted by: Franco Martinig on March 08, 2006 DIGG
How is unit testing performed in organizations? Is it an informal activity that is done before integration if there is some time left after programming or is it the key element of the development effort? A recent poll examined the way unit testing is performed in software development organizations. Here are the results:

Unit testing is not performed 13%
Unit testing is informal 46%
Unit tests cases are documented 11%
Unit tests cases and their executions are documented 16%
We use a Test Driven Development approach 14%

Participants: 460

As we can see, a majority of participants is still performing unit testing informally. This is symptomatic of the small consideration that is given to the testing phase in most software development projects. When the pressure to deliver on time is big, an informal unit testing phase allows mainly to test poorly without being noticed. It is however recognized that unit testing is an important building block of system quality and that it costs more to correct errors discovered in later project phases. Good documentation of unit tests allows also improving maintenance when the original developer has left the project or the company.

At a time where agile approaches repeat the importance of unit testing, the glass can also be considered as half-empty. From this point of view, It is already encouraging to see that 41% of the participants are documenting their unit testing efforts. A Test Driven Development approach is used by 14% of the participants and 16% are documenting the execution of their unit test. These percentages are already important. They could be explained by the emergence of a wide range of open source unit testing frameworks in the xUnit family. They are the tools that should lead to more and more repeatable unit tests.

Source: Methods & Tools (http://www.methodsandtools.com)

Threaded replies

·  Unit Testing: Can You Repeat Please? by Franco Martinig on Wed Mar 08 07:00:36 EST 2006
  ·  TDD and agile by Michael Neale on Wed Mar 22 18:17:07 EST 2006
    ·  Unit Testing by Jini Shans on Thu Mar 23 00:20:45 EST 2006
  ·  Typical TDD and Pattern nonsense propaganda by r h on Thu Mar 23 15:55:26 EST 2006
    ·  Typical TDD and Pattern nonsense propaganda by Thomas Fuller on Fri Mar 24 08:54:30 EST 2006
  ·  I for one test frequently by peter lin on Thu Mar 23 22:27:09 EST 2006
  Message #204429 Post reply Post reply Post reply Go to top Go to top Go to top

TDD and agile

Posted by: Michael Neale on March 22, 2006 in response to Message #203215
Despite what we think, TDD and Agile is still not mainstream. Its only just begun.

  Message #204440 Post reply Post reply Post reply Go to top Go to top Go to top

Unit Testing

Posted by: Jini Shans on March 23, 2006 in response to Message #204429
@ Wipro Technologies, India we do Unit Testing for all our projects, we write UTC and then prepare UTR.

  Message #204487 Post reply Post reply Post reply Go to top Go to top Go to top

Typical TDD and Pattern nonsense propaganda

Posted by: r h on March 23, 2006 in response to Message #203215
When I hear UNIT testing, I know that project will fail.

Just look at Microsoft in the last day or 2, VISTA. it's now being delayed and guess what? It's not that good anyway and there is essentially no "wow" features after how many years 5, 6 years!!!

Typically, all these patters and practices, and method websites and books are writting by "can't get it done" authors who are more talk, Q and A, than actually writing code that works in the real world.

  Message #204500 Post reply Post reply Post reply Go to top Go to top Go to top

I for one test frequently

Posted by: peter lin on March 23, 2006 in response to Message #203215
don't know about other people, but I generally write unit tests and sample code for most things I write. Depending on how much time I have, the tests may be extensive or minimal. TDD can go too far and become a huge headache, but applied judiciously, it can be a benefit. Of the open source projects I contribute to, all of them have unit tests that are executed with the builds. I've also seen cases where the tests become an overhead, but it's that or mis regressions.

peter

  Message #204526 Post reply Post reply Post reply Go to top Go to top Go to top

Typical TDD and Pattern nonsense propaganda

Posted by: Thomas Fuller on March 24, 2006 in response to Message #204487
When I hear UNIT testing, I know that project will fail.

This is rubbish. I'd like to know what the alternative is? Visually testing an application, especially when it involves thousands of classes is clumsy, prone to error, and a waste of time. It's also not very helpful at keeping developers discplined enough to write classes that stand on their own.
Just look at Microsoft in the last day or 2, VISTA. it's now being delayed and guess what? It's not that good anyway and there is essentially no "wow" features after how many years 5, 6 years!!!

In what way does this have to do with TDD and patterns?
Typically, all these patters and practices, and method websites and books are writting by "can't get it done" authors who are more talk, Q and A, than actually writing code that works in the real world.

This thread is a total waste of time.

 
New content on TheServerSide.NETNew content on TheServerSide.NETNew content on TheServerSide.NET

DSLs and language interop

Language "mashups" will become more prominent, and developers will become polyglots, one programmer suggests.

VS 2008 Resources

SearchWinDevelopment.com offers an introduction to the language, performance, testing and data management improvements in VS 2008.

VB code downloads home

VBCode.com code snippets cover all aspects of application development, from data binding to security to the user interface.

XAML Learning Guide

Get up to date on XAML best practices with a variety of articles, tutorials and webcasts. [SearchWinDevelopment.com]

Company uses VSTS DB edition to tame workflow

One team's experience with the VSTS DB edition suggests that it can improve workflow for dev teams. It also enhanced Agile efforts. (June 24, Article)

Book: Intro to DSL Tools

Microsoft has begun to include DSL tools in the VSTS kit. A new book by Steve Cook and other VSTS team members helps set the stage. (June 24, Article)

I See the Silverlight Shining!

Cartoon: Be it ever so humble there is no place like your home after you get a Microsoft Home Server . (June 18, Cartoon)

A look at .NET 3.5

Microsoft's Thom Robbins says new technology to highlight in NET 3.5 includes AJAX, LINQ for both C# and VB, as well as tooling enhancements intended to ease the task of building WPF, WF and WCF apps. (June 29, Podcast)

Venkat Subramaniam on AJAX

Venkat Subramaniam discusses AJAX bottlenecks, the tenets of Agile development and more. He spoke at the Ajax Experience. (June 25, Tech Talk)

Building a Claims-Based Security Model in WCF - Part 2

In the second of a two-part series, Michele Leroux Bustamente discusses design decisions related to the claims-based security model. Read the story and walk through the process for creating a set of claims-based utilities to encapsulate claims authorization at the service tier. (May 24, Article)

Introducing the Entity Framework

Understanding why the Entity Framework exists and learning where it can fit into your projects can get you prepared for the eventual release early next year. (May 10, Article)

WCF Security Learning Guide

Resource: This learning guide gives you quick access to useful links on Windows Communication Foundation security information. (April 24, Article)

Brad Abrams: Patterns for successful ASP.NET AJAX development

TSS.NET's Jack Vaughan spoke recently spoke with Microsoft's Brad Abrams to find out what he is seeing in the field and what the chefs in Redmond are cooking. Along the way he discusses patterns of AJAX frameworks. (April 11, Article)

Building a Claims-Based Security Model in WCF

In a two-part series, Michele Leroux Bustamente explains how claims-based security is supported by WCF, and how you can implement a claims-based security model for your services. (March 29, Article)

Authoring workflow using XAML

Windows Workflow Foundation is a new technology that many developers will need to get their heads around. In a brief excerpt adapted from Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C#, K.Scott Allen considers aspects of workflow definition. (March 22, Chapter Excerpt)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map