Do MSTest deployment items only work when present in the project test settings file?

前端 未结 7 1769
不思量自难忘°
不思量自难忘° 2020-11-28 18:44

I can\'t seem to grasp how MSTest deployment items are supposed to be configured. I have been able to get them working properly by modifying the project\'s test settings fil

7条回答
  •  佛祖请我去吃肉
    2020-11-28 19:15

    I thought I'd share a way I ran into problems with MSTest and deployment items. If you Debug/Run your test a 2nd time or more from the "Test Results" window, it uses the settings from a previous run. However, if you Debug/Run the same test from the "Test View" window, it uses the latest settings. I lost an hour to trying to figure out why changes to Local.testsettings weren't being used when I kept starting Debug on the same test from the "Test Results" window.

    This is the Test Results window (do not [re]start tests from here after making changes to Local.testsettings):

    The Test Results Window

    And this is the Test View window (DO start tests from here after making changes to Local.testsettings):

    The Test View Window

    I hope this saves someone a headache in the future.

提交回复
热议问题