The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Heuristic code coverage percentage for .NET Framework

0 replies.

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 flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Jonathan Crossland

Posts: 630
Nickname: jonathanc
Registered: Feb, 2004

Jonathan Crossland is a software architect for Lucid Ocean Ltd
Heuristic code coverage percentage for .NET Framework Posted: Dec 14, 2009 6:45 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jonathan Crossland.
Original Post: Heuristic code coverage percentage for .NET Framework
Feed Title: Jonathan Crossland Weblog
Feed URL: http://www.jonathancrossland.com/syndication.axd
Feed Description: Design, Frameworks, Patterns and Idioms
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jonathan Crossland
Latest Posts From Jonathan Crossland Weblog


I was recently asked about what I thought about unit tests and coverage.

Due to each language and framework having unique designs, what would the lower percentage be for testing you .NET Framework code?

I have done some tests, and checked through 49 Enterprise, in-production, Assemblies and 12 personal project assemblies of various sizes. Code coverage has been pushed to the highest, before major resistence sets in.

Based on my tests and observations, it seems around 85% coverage is where you begin to see a large amount of code coverage dependency resistence.

What is code coverage dependency resistence? (is there another terms for this, that has slipped me by?)

When you find writing certain tests, testing certain interfaces etc, are more on the side of the framework, than your code.
When a set of interfaces, should already have framework tests, or tests from your other dependencies.

Each platform is different, but for .NET you should be looking to write between 70-90% code coverage for good results, with 85% being the sweet spot.

Read: Heuristic code coverage percentage for .NET Framework


Topic: EntityCube - Microsoft Research Previous Topic   Next Topic Topic: Windows 7: Build Innovative Applications

Sponsored Links



Google
  Web Artima.com   

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