ncover & unit tests

ncover & unit tests

Hi, I am new to Ncover.

I would like to see how much code cover my unit test. When I run Ncover (please have a look below) I get Sequence Point Coverage: 0.0% & Branch Coverage: 0.0% Why it is like that? How can I see coverage? NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET Copyright (c) 2008 Gnoso Inc. http://www.ncover.com Registered to Customer #: 17715 NCover Enterprise Edition (1 User) 30 days left in the trial period. Command: D:\develop\platforms\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe Command Args: "/testcontainer:D:\aau\Projects\Call\src\Call\ScoreEngineCall\TestProject\bin\Debug\TestProject.dll" Working Directory: Assemblies: Program Output Microsoft (R) Test Execution Command Line Tool Version 9.0.21022.8 Copyright (c) Microsoft Corporation. All rights reserved.
Loading D:\aau\Projects\Call\src\Call\ScoreEngineCall\TestProject\bin\Debug\TestProject.dll... Starting execution... Results Top Level Tests


Passed TestProject.MiscTest.CalculateAgeFailsTest Passed TestProject.MiscTest.CalculateAgeTest Passed TestProject.MiscTest.ConvertToDateTimeTest Passed TestProject.RequestDaoTest.InsertTest Passed TestProject.RequestDaoTest.SelectByIndexTest Passed TestProject.RequestDaoTest.SelectTest Passed TestProject.RequestDaoTest.UpdateTest ...(and so on) 29/29 test(s) Passed

Summary

Test Run Completed.

Passed 29

Total 29 Results file: D:\aau\Projects\Call\src\Call\ScoreEngineCall\TestProject\bin\Debug\TestResults\tomb_TOMB-1 2008-11-03 14_34_35.trx Run Configuration: Default Run Configuration End Program Output Execution Time: 00:00:21.8614352s Sequence Point Coverage: 0.0% Branch Coverage: 0.0% Coverage Xml: D:\aau\Projects\Call\src\Call\ScoreEngineCall\TestProject\bin\Debug\Coverage.Xml Thanks in advance. Tom


RE: ncover & unit tests

you need to run MSTest with the "//pm VSTestHost.exe" argument