locked
Unit tests missing from test view RRS feed

  • Question

  • I have a solution with a number of unit test projects (a mixture of C# and C++) and for some reason the tests in two of the projects no longer appear in either Test View or the Test list Editor meaning i can no longer access or run the tests.

    As far as i can tell there is nothing wrong with either project and nothing significant i know of has changed.

    Tried a web search, MSDN forum search unloading and reloading the projects, deleting and re-creating the VSMDI files and seen one similar (ish) issue but no likey avenues to explore.

    I am running VS2008 SP1 Team Developer, does anyone have any ideas as to why these test are no longer available in Visual Studio ?

    Tuesday, March 23, 2010 6:41 PM

All replies

  • Hello,

    If you try to open those projects individually, do the tests show up? Can you build them?

    You might want to try doing a 'devenv /resetusersettings' from a VS command prompt and see if that helps. I assume the tests were showing up at some point.

    Thanks,
    David Gorena Elizondo
    [MSFT] Visual Studio Team Test

    Tuesday, March 23, 2010 10:43 PM
  • Hi David,

    I had tried the resetusersettings command before posting as it was suggested for a similar error(i should have said in the origional post sorry), it did not help.

    Each of the projects builds via right click >> "Project Only" >> "Rebuild Only <project>". There are several other near identical projects (other than the test content) which all load just fine.

    Is there any way to generate a log file of the Test View being built to see why the projects are being skipped over ?

    Thanks ...

    Wednesday, March 24, 2010 10:23 AM
  • Please enable tracing for devenv.exe.config as specified here: http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/df043823-ffcf-46a4-9e47-1c4b8854ca13 -> Appendix 1, Tools->Diagnostics information->Enabe tracing via .config file->For client. Then restart VS, repro the problem and send the log to me or if it's not too long, you can paste it to this post.

    Thanks,
    Michael Koltachev,
    Visual Studio Team Test

    Saturday, April 3, 2010 12:37 AM
  • Hi Michael,

    Sorry for the delayed response, here is the debug information you asked for (slightly abbridged) i do not see anything it just seems to silently skip the projects in question.

    I opened VS and then selected test >> windows >> test view and this is the output.

    [V, 4668, 1, 2010/04/15 10:34:46.252] devenv.exe: Tmi:Tmi
    [V, 4668, 1, 2010/04/15 10:34:46.302] devenv.exe: Tmi.AddOrUpdateResult: AcceptChanges: started.
    [V, 4668, 1, 2010/04/15 10:34:46.302] devenv.exe: Tmi.AddOrUpdateResult: AcceptChanges: finished.
    [V, 4668, 1, 2010/04/15 10:34:46.307] devenv.exe: Tmi.CreateTestToCategoryRelationsAndExpressionColumns
    [V, 4668, 1, 2010/04/15 10:34:46.307] devenv.exe: Tmi.AddRelation: test2testXcat
    [V, 4668, 1, 2010/04/15 10:34:46.307] devenv.exe: Tmi.AddRelation: cat2testXcat
    [I, 4668, 1, 2010/04/15 10:34:46.331] devenv.exe: New test type record: {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}
    [V, 4668, 1, 2010/04/15 10:34:46.332] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: Satellite DLL found OK
    [I, 4668, 1, 2010/04/15 10:34:46.338] 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, 4668, 1, 2010/04/15 10:34:46.340] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: Satellite DLL loaded OK
    [V, 4668, 1, 2010/04/15 10:34:46.340] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: assosiated with editor {00000000-0000-0000-0000-000000000000}
    [I, 4668, 1, 2010/04/15 10:34:46.342] devenv.exe: New test type record: {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}
    [V, 4668, 1, 2010/04/15 10:34:46.342] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: Satellite DLL found OK
    [I, 4668, 1, 2010/04/15 10:34:46.342] 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, 4668, 1, 2010/04/15 10:34:46.342] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: Satellite DLL loaded OK
    [V, 4668, 1, 2010/04/15 10:34:46.342] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: assosiated with editor {700218d8-f6f1-4ec3-be76-a35f72260503}
    [W, 4668, 1, 2010/04/15 10:34:46.343] devenv.exe: Total of 2 test types, loaded 2
    [V, 4668, 1, 2010/04/15 10:34:46.358] devenv.exe: DteEventManager.DteEventManager()
    [V, 4668, 1, 2010/04/15 10:34:46.359] devenv.exe: DteEventManager.InitializeEvents()
    [V, 4668, 1, 2010/04/15 10:34:46.507] devenv.exe: DteEventManager.SubscribeToKeystrokeEvents: Background test method discovery is enabled.
    [I, 4668, 1, 2010/04/15 10:34:46.512] devenv.exe: New Code Model Processor: {b8a18f12-9257-4a47-ae71-c970774415c5}
    [I, 4668, 1, 2010/04/15 10:34:46.513] devenv.exe: Processor {b8a18f12-9257-4a47-ae71-c970774415c5}: Type 'Microsoft.VisualStudio.TestTools.TestCaseManagement.UnitTestCodeModelReflector, Microsoft.VisualStudio.QualityTools.CMI, Version=9.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    [V, 4668, 1, 2010/04/15 10:34:46.518] devenv.exe: Processor Type {b8a18f12-9257-4a47-ae71-c970774415c5}: Processor instantiated OK
    [I, 4668, 1, 2010/04/15 10:34:46.533] devenv.exe: GetObjects(): select * from test where CreatedByUI = True.
    [I, 4668, 1, 2010/04/15 10:34:46.533] devenv.exe: GetObjects(): 0 records for CreatedByUI = True.
    [V, 4668, 1, 2010/04/15 10:34:46.535] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:46.536] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:46.553] devenv.exe: SolutionIntegrationManager.IsAnyTipForTipLoadTestsFromProjectOutput: False
    [I, 4668, 1, 2010/04/15 10:34:46.623] devenv.exe: GetObjects(): select * from result_run where .
    [I, 4668, 1, 2010/04/15 10:34:46.623] devenv.exe: GetObjects(): 0 records for .
    [W, 4668, 1, 2010/04/15 10:34:46.729] devenv.exe: XmlFilePersistence.LoadFile: file not found at D:\Workspaces\ADSDK\AmericanDynamicsSDK\AmericanDynamicsSDK1.vsmdi
    [V, 4668, 1, 2010/04/15 10:34:46.755] devenv.exe: SolutionIntegrationListener: AddFileListener: D:\Workspaces\ADSDK\AmericanDynamicsSDK\LoadTestRun.testrunconfig
    [I, 4668, 1, 2010/04/15 10:34:46.758] devenv.exe: GetObjects(): select * from run_config where Storage = 'd:\workspaces\adsdk\americandynamicssdk\loadtestrun.testrunconfig'.
    [I, 4668, 1, 2010/04/15 10:34:46.758] devenv.exe: GetObjects(): 0 records for Storage = 'd:\workspaces\adsdk\americandynamicssdk\loadtestrun.testrunconfig'.
    [V, 4668, 1, 2010/04/15 10:34:46.859] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:46.859] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:46.869] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:46.869] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:46.878] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:46.878] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:46.914] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:46.914] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:47.257] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:47.257] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:47.294] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:47.294] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:47.306] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:47.306] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:47.319] devenv.exe: Tmi.ClearManagedTestStorage: starting for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi'.
    [V, 4668, 1, 2010/04/15 10:34:47.320] devenv.exe: Tmi.ClearManagedTestStorage: finished for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.Cmi': deleted 0 rows.
    [V, 4668, 1, 2010/04/15 10:34:47.965] devenv.exe: Adding test from CMI: ApiVersionTest

    ..... lots more but none from missing projects


    [V, 4668, 1, 2010/04/15 10:34:49.437] devenv.exe: Adding test from CMI: VeAddValueTest
    [V, 4668, 1, 2010/04/15 10:34:49.438] devenv.exe: Adding test from CMI: VeAddNamedValueTest
    [V, 4668, 1, 2010/04/15 10:34:49.443] devenv.exe: Cmi.Commit: Committing tests...
    [V, 4668, 1, 2010/04/15 10:34:49.636] devenv.exe: Cmi.Commit: Done committing tests...
    [V, 4668, 1, 2010/04/15 10:34:49.638] devenv.exe: TmiTestDataManager: Firing AfterLoad Event
    [V, 4668, 1, 2010/04/15 10:34:49.652] devenv.exe: TmiTestDataManager:InitializeGroups(Test) - GroupBy: ''
    [I, 4668, 1, 2010/04/15 10:34:49.653] devenv.exe: TmiTestDataManager: AddTmiObjectListeners(False)
    [V, 4668, 1, 2010/04/15 10:34:49.674] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: icon loaded OK
    [V, 4668, 1, 2010/04/15 10:34:49.675] devenv.exe: Test type {13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}: icon loaded OK
    [V, 4668, 1, 2010/04/15 10:34:49.677] devenv.exe: Test type {ec4800e8-40e5-4ab3-8510-b8bf29b1904d}: icon loaded OK
    [I, 4668, 1, 2010/04/15 10:34:49.731] devenv.exe: TmiGroup`3: Creating Dataview for Column '', filtering by ''
    [I, 4668, 1, 2010/04/15 10:34:49.735] devenv.exe: GetData(): select * from test where .
    [I, 4668, 1, 2010/04/15 10:34:49.736] devenv.exe: GetData(): 531 records for .
    [V, 4668, 1, 2010/04/15 10:34:49.736] devenv.exe: TmiGroup`3:OurData(Test) - Name:  ,Filter:'', Count: 531
    [I, 4668, 1, 2010/04/15 10:34:49.774] devenv.exe: GetObjectCount(): select * from test where .
    [I, 4668, 1, 2010/04/15 10:34:49.774] devenv.exe: GetObjectCount(): 531 records for .
    [V, 4668, 1, 2010/04/15 10:34:49.787] 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, 4668, 1, 2010/04/15 10:34:49.787] 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
    [I, 4668, 1, 2010/04/15 10:34:49.810] devenv.exe: GetObjectCount(): select * from test where .
    [I, 4668, 1, 2010/04/15 10:34:49.810] devenv.exe: GetObjectCount(): 531 records for .
    [V, 4668, 1, 2010/04/15 10:34:49.878] devenv.exe: Cmi.Commit: Committing tests...
    [V, 4668, 1, 2010/04/15 10:34:49.879] devenv.exe: Cmi.Commit: Done committing tests...

    Thursday, April 15, 2010 9:44 AM
  • As there been any updates on this situation?  I am pretty much experiencing the same problem.  I have some unit test that sometimes load in the list, sometimes not.  I found that if I comment out my test, rebuild the test project, uncomment the test and rebuild the test again, sometimes my missing tests will magically reappear.  I get pretty much the same behavior when changeing from debug to release or if I change from Mixed Platforms to Win32 configurations.  Whenever they do magically decide to reappear, it's usually not for very long though.  This is kind of annoying as we want to run these tests as part of an automated build procedure, not very good when some tests are not always present.
    Tuesday, November 23, 2010 3:39 PM