Answered by:
localtestrun.testrunconfig closes when i click on code coverage

Question
-
Thursday, January 24, 2008 7:34 AM
Answers
-
I have done a little more debugging and found that it is being caused by solutions containining a WSSF project.
If I create a new project Guidance Packages -> Service Factory : Modeling Edition -> Model Project. I then add a new test configuration file. I then go Test -> Edit Test Run Configuration -> Local Test Run -> Click Code Coverage, the window then closes.
As it is the code coverage window that is crashing I assume the bug is in there, or at the very least it doesn't handle external errors very well!!
Thursday, February 21, 2008 4:41 AM
All replies
-
Which VS version are you using? If that's VS2005, do you have SP1 installed? Could you provide more specific steps to reproduct this? Can you reproduct this in a new jsut created test project?
Thanks,
Michael
Thursday, January 24, 2008 7:38 AM -
Hi,
Thursday, January 24, 2008 8:40 AM -
I think there is a version conflict on ur Installtion. I have also faced some issues with improper setup.
The Soluition is to overwrite the QualityTools DLLs in the IDE directory and start the VS with Devenv \ResetSettings
** I also need the Testresults Error message for more info
Tuesday, January 29, 2008 7:30 AM -
OK, let's start to troubleshoot it. Could you please collect tracing information for the process devenv.exe and send it to us? You can find information how to collect for a process in this post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1206123&SiteID=1
Thanks,
Michael
Tuesday, January 29, 2008 11:52 PM -
I have the same issue on Windows XP SP 2, VS2008 Developer Edition Version 9.0.21022.8 RTM . Any suggestions would be appreciated!
I open the solution, and then go:
Test -> Edit Test Run Configuration -> Local Test Run -> Click Code Coverage.
Then the editor closes, no exception is reported.
I have turned on tracing for the VSTestHost.exe but it didn't even create the log file. It appears it is not used for editing the configuration.
So I added the following to the file devenv.exe.config:
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\devenv.log" />
</listeners>
</trace>
<switches>
<!-- You must use integral values for "value". Use 0 for off, 1 for
error, 2 for warn, 3 for info, and 4 for verbose. -->
<add name="EqtTraceLevel" value="4" />
</switches>
</system.diagnostics>
However there is no exception in the trace file. Here are the parts around when it crashed
** COMPLETED LOADING PROJECT
** Open Test Config Editor
[V, 4644, 1, 2008/01/31 13:31:43.943] devenv.exe: SolutionIntegrationListener: AddFileListener: C:\ITS\LocalTestRun.testrunconfig
[V, 4644, 1, 2008/01/31 13:31:43.990] devenv.exe: Tmi:Tmi
[V, 4644, 1, 2008/01/31 13:31:44.131] devenv.exe: Tmi.AddOrUpdateResult: AcceptChanges: started.
[V, 4644, 1, 2008/01/31 13:31:44.131] devenv.exe: Tmi.AddOrUpdateResult: AcceptChanges: finished.
[V, 4644, 1, 2008/01/31 13:31:44.131] devenv.exe: Tmi.CreateTestToCategoryRelationsAndExpressionColumns
[V, 4644, 1, 2008/01/31 13:31:44.131] devenv.exe: Tmi.AddRelation: test2testXcat
[V, 4644, 1, 2008/01/31 13:31:44.131] devenv.exe: Tmi.AddRelation: cat2testXcat
[I, 4644, 1, 2008/01/31 13:31:44.178] devenv.exe: New test type record: {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}
[V, 4644, 1, 2008/01/31 13:31:44.193] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: Satellite DLL found OK
[I, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: TIP 'Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestTip, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[V, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: Satellite DLL loaded OK
[V, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: assosiated with editor {00000000-0000-0000-0000-000000000000}
[I, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: New test type record: {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}
[V, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: Satellite DLL found OK
[I, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: TIP 'Microsoft.VisualStudio.TestTools.TestTypes.Ordered.AutoSuiteTip, Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[V, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: Satellite DLL loaded OK
[V, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: assosiated with editor {700218d8-f6f1-4ec3-be76-a35f72260503}
[W, 4644, 1, 2008/01/31 13:31:44.209] devenv.exe: Total of 2 test types, loaded 2
[I, 4644, 1, 2008/01/31 13:31:44.256] devenv.exe: GetObjects(): select * from run_config where Storage = 'c:\its\localtestrun.testrunconfig'.
[I, 4644, 1, 2008/01/31 13:31:44.256] devenv.exe: GetObjects(): 0 records for Storage = 'c:\its\localtestrun.testrunconfig'.
[I, 4644, 1, 2008/01/31 13:31:45.521] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:45.521] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:45.537] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:46.693] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:46.693] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:46.693] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:46.693] devenv.exe: GetObjects(): 1 records for .
[I, 4644, 1, 2008/01/31 13:31:46.709] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:46.709] devenv.exe: GetObjects(): 1 records for .
[V, 4644, 1, 2008/01/31 13:31:47.240] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: service type Microsoft.VisualStudio.TestTools.TestTypes.Unit.SUnitTestService, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a instantiated OK
[V, 4644, 1, 2008/01/31 13:31:47.240] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: service type Microsoft.VisualStudio.TestTools.TestTypes.Unit.SUnitTestService, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a instantiated OK
[V, 4644, 1, 2008/01/31 13:31:47.240] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: service type Microsoft.VisualStudio.TestTools.TestTypes.Ordered.SOrderedTestService, Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a instantiated OK
[V, 4644, 1, 2008/01/31 13:31:47.240] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: service type Microsoft.VisualStudio.TestTools.TestTypes.Ordered.SOrderedTestService, Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a instantiated OK
[V, 4644, 1, 2008/01/31 13:31:47.349] devenv.exe: LoadAndInitializeUserControl: host type 'ASP.NET': run cnofig editor loaded successfully.
[V, 4644, 1, 2008/01/31 13:31:47.849] devenv.exe: LoadAndInitializeUserControl: host type 'Smart Device': run cnofig editor loaded successfully.
[V, 4644, 1, 2008/01/31 13:31:47.865] devenv.exe: LoadAndInitializeUserControl: host type 'VS IDE': run cnofig editor loaded successfully.** FINISHED OPEN TEST CONFIGURATION
** ABOUT TO CLICK CODE COVERAGE[I, 4644, 1, 2008/01/31 13:31:57.614] devenv.exe: GetObjects(): select * from run_config where .
[I, 4644, 1, 2008/01/31 13:31:57.614] devenv.exe: GetObjects(): 1 records for .** HAS ALREADY CRASHED
** CLOSE VS NOW[V, 4644, 1, 2008/01/31 13:32:04.535] devenv.exe: SolutionIntegrationListener: IVsSolutionEvents3
nQueryCloseSolution:InvoiceTransformService
Thursday, January 31, 2008 3:39 AM -
I have done a little more debugging and found that it is being caused by solutions containining a WSSF project.
If I create a new project Guidance Packages -> Service Factory : Modeling Edition -> Model Project. I then add a new test configuration file. I then go Test -> Edit Test Run Configuration -> Local Test Run -> Click Code Coverage, the window then closes.
As it is the code coverage window that is crashing I assume the bug is in there, or at the very least it doesn't handle external errors very well!!
Thursday, February 21, 2008 4:41 AM -
Yes, the problem is with WSSF projects. For other project types it is working fine. Thanks aussie_iainFriday, February 22, 2008 10:05 AM
-
I reported a bug of this under VS2008
Monday, February 25, 2008 5:24 AM -
I do not have a WSSF project in my solution but I still have this issue (VS2005 with SP1). My solution just contains class libraries and web application projects.
Regards
Andy
Wednesday, March 5, 2008 4:42 PM -
Lets try and figure out if its one of your projects. Trying unloading some projects (In the solution window, left click the project -> Unload Project) and see if you can get it working again. I found that unloading the WSSF project fixed it for me. If that doesn't work try removing projects until it does work.Wednesday, March 5, 2008 10:07 PM
-
Thanks for the tip. I don't have a WSSF project, but I do have a dbproj (Microsoft Visual Studio Team System 2008 Database Edition GDR Version 9.1.30819.01). Unloading that project allowed access to the Code Analysis section again.Thursday, September 11, 2008 6:23 PM
-
I just ran into this same issue but a Wix project is what did it.
Anyone know what the code coverage window closes in VS 2008 Suite when a Wix project is added?- Edited by Chris McLeod Thursday, October 23, 2008 9:05 PM
Thursday, October 23, 2008 9:04 PM -
In regards to no code coverage when GDR projects are included in the solution, did you file a bug? Thanks!Wednesday, December 10, 2008 10:12 PM
-
A bug has been filed and we should have a hotfix available soon. We are reviewing the KB Article.
Thanks
Bruce Taimana Program Manager Visual Studio Team System for TestersTuesday, February 24, 2009 4:37 AM -
I am having the same problem with Silverlight projects. I have 3 Silverlight class projects and a Silverlight project. I can open the code coverage property page with any of the Silverlight Class Library projects loaded, but if my Silverlight project is loaded I can't open the code coverage property page. I also have a database project, but it is not causing any problems. I have a total of 15 projects including an MVC project and a Web Application project.Microsoft Visual Studio 2008Version 9.0.30729.1 SPMicrosoft .NET FrameworkVersion 3.5 SP1Installed Edition: EnterpriseMicrosoft Silverlight Projects 2008 91899-270-0107256-60598Microsoft Silverlight Projects 2008Version 9.0.30729.146Microsoft Visual Basic 2008 91899-270-0107256-60598Microsoft Visual Basic 2008Microsoft Visual C# 2008 91899-270-0107256-60598Microsoft Visual C# 2008Microsoft Visual C++ 2008 91899-270-0107256-60598Microsoft Visual C++ 2008Microsoft Visual Studio 2008 Team Explorer 91899-270-0107256-60598Microsoft Visual Studio 2008 Team ExplorerVersion 9.0.30729.1Microsoft Visual Studio 2008 Tools for Office 91899-270-0107256-60598Microsoft Visual Studio 2008 Tools for OfficeMicrosoft Visual Studio Team System 2008 Architecture Edition 91899-270-0107256-60598Microsoft Visual Studio Team System 2008 Architecture EditionMicrosoft Visual Studio Team System 2008 Database Edition 91899-270-0107256-60598Microsoft Visual Studio Team System 2008 Database EditionMicrosoft Visual Studio Team System 2008 Development Edition 91899-270-0107256-60598Microsoft Visual Studio Team System 2008 Development EditionPortions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.Microsoft Visual Studio Team System 2008 Test Edition 91899-270-0107256-60598Microsoft Visual Studio Team System 2008 Test EditionMicrosoft Visual Web Developer 2008 91899-270-0107256-60598Microsoft Visual Web Developer 2008Devart dotConnect for Oracle 5.0.16.0Devart dotConnect for OracleCopyright 2002 - 2008 Devart. All rights reserved.Web: www.devart.com/dotconnect/oracleSupport: dcoracle@devart.comEnterprise Library Configuration Editor 4.0Microsoft patterns & practices Enterprise Library Configuration EditorHotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB945282) KB945282This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/945282.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946040) KB946040This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946040.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946308) KB946308This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946308.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946344) KB946344This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946344.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946581) KB946581This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946581.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB947173) KB947173This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947173.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB947540) KB947540This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947540.Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB947789) KB947789This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947789.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946260) KB946260This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946260.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946458) KB946458This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946458.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB947171) KB947171This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947171.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB947180) KB947180This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947180.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB948816) KB948816This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/948816.Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB944899) KB944899This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/944899.Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB946673) KB946673This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/946673.Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB948127) KB948127This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/948127.Hotfix for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB953256) KB953256This hotfix is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/953256.Microsoft Visual Studio 2008 Team Explorer - ENU Service Pack 1 (KB945140) KB945140This service pack is for Microsoft Visual Studio 2008 Team Explorer - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/945140.Microsoft Visual Studio Team System 2008 Team Suite - ENU Service Pack 1 (KB947888) KB947888This service pack is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/947888.PowerCommands for Visual Studio 2008 1.0A set of power commands for Visual Studio 2008Update for Microsoft Visual Studio Team System 2008 Team Suite - ENU (KB956453) KB956453This update is for Microsoft Visual Studio Team System 2008 Team Suite - ENU.If you later install a more recent service pack, this update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/956453.
Mark J Miller blog: http://developmentalmadness.blogspot.comWednesday, April 22, 2009 1:56 PM -
I have this problem as well, when there are Database Edition GDR projects loaded in the solution. Unloading the DBPro projects allows me to edit the code coverage settings of the testrunconfig.
-Aidan- Proposed as answer by Schwonz Thursday, October 1, 2009 3:50 PM
Thursday, September 17, 2009 11:08 AM -
Thank you Chris McLeod!!! We to had three Wix projects in our "super" solution. I "unloaded" those projects and was able to open the localtestrun.testrunconfig file and modify / save it without it closing. SO THANK YOU!!!Thursday, October 1, 2009 3:53 PM
-
A patch is available for this issue: https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16979&wa=wsignin1.0
Thursday, October 1, 2009 6:17 PM