2

We use a .runsettings file to enforce 64 bit execution environment (and appropriate code coverage) for unit tests in visual studio 2015. While more than half of the time VS will remember the selected file when opening a solution, it does sometimes forget and we have to re-select the file.

Is there any way to make this selection more permanent for the solution, so that it is loaded every time the solution is opened?

StingyJack
  • 19,041
  • 10
  • 63
  • 122
  • Reported several times at connect.microsoft.com. Pretty vague since everybody posts "doesn't work" like you did, but seems like known problem with status deferred. Some hint that Update 2 might fix it, currently in RC. – Hans Passant Mar 11 '16 at 14:11
  • Thanks @HansPassant, i did search for "runsettings" and "testsettings" over on connect and it has no results. Can you link one of them here? – StingyJack Mar 11 '16 at 14:28
  • 1
    nvm, I logged one for meself - https://connect.microsoft.com/VisualStudio/feedback/details/2460518 – StingyJack Mar 11 '16 at 15:50
  • 1
    @StingyJack: I piggy-backed on yours on connect, I can reliably repro the issue every time. Not enough space here to explain the repro (see your issue at connect for the details), but in short: the only Workaround is to keep the Test Explorer open and visible when closing or opening the Solution. Auto-hiding it or making it a tab behind another tab will not work. – j0ffe Apr 12 '16 at 09:44
  • 2
    @HansPassant - despite all those reports it still didnt get transferred from connect to devcomm until someone reopened an issue on GH about it, and that prompted the testfx team to open the devcomm issue for it. https://developercommunity.visualstudio.com/content/problem/151608/ability-to-set-runsettings-in-project-file.html – StingyJack Oct 21 '18 at 20:45

1 Answers1

0

I found this post runsetting, in case of unit testing you can set in the menu: Test/test settings/Select Test Settings file

DanielV
  • 2,076
  • 2
  • 40
  • 61