Welcome Guest Search | Active Topics | Members | Log In | Register

[2005 Team System] Unit Tests work, but not properly, no code coverage etc. Options · View
Oolis Kraprin
Posted: Monday, April 07, 2008 5:16:00 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/04/2008 17:16:00
Date: Tue, 8 Apr 2008 00:16:00 -0700 (PDT)

Hi, we have a fairly large solution c# solution a lot of dlls and a
few exes too, and we have written a unit test for one of the exes,
mainly to evaluate what we shall do with unit tests in the future.

The unit test works. I can select the project and run the test in the
toolbar either with or without the debugger. Code coverage used to
work, but now it doesn't. It just says Code coverage is not enabled
for this test run.

If I double click on TestRunConfig.testrunconfig, I can see that the
project for the exe under test is in fact checked in the code coverage
section, everything else in the window is default.

These are some other things I have noticed: If i right click on either
the solution, the Unit Test project or the project under test and
select Run Unit Tests, I always get No tests found in project.

In the test menu at the top, the Select Active and Edit Test Run
Configuration items both have No Test Run Configurations Available.

I also have a <solution name>.vsmdi file in the solution and if I try
and use the Load Metadata File menu item and load it I get a error
message: Metadata files that belong to projects can not be edited, if
you wish to use this metadatafile, please import it into the solution.

I am not sure what I have to do to import it into the solution.

If I click ok on that error message I get another error message that
it could not be read and it didnt have the expected format and a
StorageNotAccessibleException occurred. The file looks normal as far
as i can tell and basically references the testrunconfig.testrunconfig
file.

Somehow I think these files merely exist and are not actually properly
integrated into the solution or the right projects.

Anyone know how this can be fixed, or these files perhaps regenerated
(without having to recreate the unit test project)

Also I seem to find more references to nunit rather than than the team
system unit testing, which one is "better"?

Thanks a lot.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.032 seconds.