CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 3/16/2007 10:34:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
XIII
Asp.Net User
Code coverage & unit test problem3/16/2007 10:34:03 AM

0/0

Hi,

I'm using Visual Studio Team System 2005 for developers.

I'm using unit testing for quite some time but for some reason using it without the debugger breaks and I get casting or object reference not set issues. When I run those particular tests again in debug mode to see where the casting errors come from all those tests pass. The only resource related thing I use are database calls from within my code and I already looked to see if the connections are properly closed etc.

The annoying thing is that my code coverage doesn't work, even if I succeed in running several tests successfully without debugging, which normally gives me access to code coverage.

Anyone has an idea that I can use to solve this problem?

Grz, Kris.


Kris van der Mast [MVP] || 101 LINQ to SQL samples
bizbiz
Asp.Net User
Re: Code coverage & unit test problem10/17/2007 7:18:26 PM

0/0

Hello,

Did you find a solution to your problem because I'm experimenting some similars problems...

I run units tests in run mode and get errors.  After that, I run the same unit tests in debug and all tests works.  I think it is related to the fact that in the TestInitialize, I work with a singleton (static class).  In the first test, I clear the singleton and after, put something into it.  In the next text, I do the same thing.  But the second thing fail because the singleton is reinitialize.  Do something special I need to know about working with static object and singleton in unit test ?  How I can be sure that all test will be independant from each others ?

 Thanks

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro Visual Studio 2005 Team System Application Development: Application Design Authors: Steve Shrimpton, Pages: 768, Published: 2006
Pro Visual Studio 2005 Team System Authors: Jeff Levinson, David Nelson, Pages: 515, Published: 2006
Professional Visual Studio 2005 Team System Authors: Jean-Luc David, Tony Loton, Erik Gunvaldson, Christopher Bowen, Noah Coad, Darren Jefford, Pages: 700, Published: 2006
Pro NetBeans IDE 5.5 Enterprise Edition: enterprise edition Authors: Adam Myatt, Pages: 445, Published: 2007
Software Testing and Continuous Quality Improvement: A Quality Framework for Software Testing Authors: William E. Lewis, Pages: 620, Published: 2000
Professional HaXe and Neko Authors: Franco Ponticelli, Lee McColl-Sylvester, Pages: 619, Published: 2008
Pro Visual Studio Team System with Team Edition for Database Professionals: With Team Edition for Database Professionals Authors: Jeff Levinson, David Nelson, Pages: 617, Published: 2007
Professional C++ Authors: Nicholas Solter, Scott Kleper, Pages: 838, Published: 2005
Automated Software Testing: Introduction, Management, and Performance Authors: Elfriede Dustin, Jeff Rashka, John Paul, Pages: 608, Published: 1999
Professional Java Tools for Extreme Programming: Ant, Xdoclet, JUnit, Cactus, and Maven Authors: Richard Hightower, Warner Onstine, Paul Visan, Damon Payne, Joseph D. Gradecki, Kate Rhodes, Robert Watkins, Erik Meade, Pages: 768, Published: 2004

Web:
Open Source Code Coverage Tools in Java An eclipse plugin for code coverage visualization of JUnit Tests. ... Per test case coverage measurement. * Fully integrated with JUnit for automatic ...
Advocating the use of code coverage Sep 12, 2006 ... Sometimes I write a unit test that does nothing but force some code to be executed with one simple case. This makes my code coverage number ...
Code Coverage Analysis This paper gives a complete description of code coverage analysis (test ... same as statement coverage except the unit of code measured is each sequence of ...
Test Often.: Unit Testing + Code Coverage = Bad For Business? Sep 26, 2006 ... Measuring code coverage is a natural complement to unit testing. ... because we didn't verify its behavior, we missed an obvious problem. ...
How to: Obtain Code Coverage Data To obtain code coverage data. Create tests for your code. These can be unit tests, or other test types that exercise code for which you have symbols, ...
CoolBoy's Weblog: 100% Unit Test Code coverage using Mock, does it ... a) A integration/functional testing code will always deliver more test coverage then unit testing code. b) Integration testing code allows us to capture our ...
Pro NetBeans - The source for learning NetBeans. Mar 11, 2008 ... Reviewing the NetBeans Unit Tests Code Coverage Plugin .... Next, re-run your JUnit tests. The JUnit Test Results window should list the ...
Quilt - Quilt It is optimized for use with the JUnit unit test package, the Ant Java ... Coverage is a measure of the extent to which tests exercise the code under test. ...
Unit Test Code Coverage - What Is A Good Number? - James Newton-King Jun 14, 2008 ... Unit Test Code Coverage - What Is A Good Number? Shawn writes that you should have 100% test code coverage, Jason agrees. ...
#304 (`unittest' extension includes HTML files in code coverage ... If I run unittest without setting command-line options for code coverage analysis, ... I've just found that the problem is that I'm not using setuptols' ...

Videos:
Software Engineering - Microsoft Visual Studio Team System Sam Guckenheimer has been the chief customer advocate for VSTS, responsible for its end-to-end external design. He describes his book, Software Engin...
JAVAWUG BOF 22 Jason van Zyl Maven 2.0 Welcome to JAVAWUG BOF 22 Video Presentation. This video features Jason Van Zyl, the chief architect and co-founder of Mergere.com, who talks about A...
Achievable Futures Google TechTalks April 26, 2006 James Lyndsay James Lyndsay is actively involved in the international software testing community. He received 'Best ...
Using ROSE to Mitigate Performance Trade-offs Google TechTalks April 03, 2006 Daniel Quinlan ROSE is a tool for building source-to-source transformation tools for the optimization of C and C++ ...
Using Static Analysis For Software Defect Detection Google TechTalks July 6, 2006 William Pugh ABSTRACT I'll talk about some of my experience in using and expanding static analysis tools for defect d...
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










vss get latest version error

the item [path] could not be found in your workspace.

where is msavalon namespace

how to: custom default page of web browser

how to clear recent projects list ?

firefox instead of ie7

profile tab missing

version numbers

how do i tell vs that what it's editing is pl/sql?

error message box in visual studio

option to always expand all code sections

file->new->web site is not providing the correct dialog for creating a new web site

pogo

pages or user controls inside a regular folder

change default namespaces for new c# class

vs 2005: adding a new page with the name resume.aspx to the website generate unexpected erros!!!

2003 and 2005 running side by side?

bios command limit reached

development server - run website from another computer on the network...

"new project" dialog not showing office project types after install of vsot

visual sourcesafe

app_code folder bug

test projects in vs team edition for architects?

debugging a remote process

piping output from a web deployment project

moving from visual web developer 2005 express

web config loses file permissions prob

web application project and profile api

redo annoying me and possible bug with atlas/dataset

want to generate runtime label and textbox.

  Privacy | Contact Us
All Times Are GMT