I suggest you ...

Unit test configuration file .runsettings support system environment variables

When we configure .runsettings, we have to specify the hard coded value, such as


x64
C:\TEMP\TestResults

But if I use $(platform), or $(ProjectDir) variables which is defined in my system path or visual studio, it can't work.

So, can unit test configuration file .runsettings support system environment variables?

83 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Alex shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Habib Qureshi commented  ·   ·  Flag as inappropriate

        We also need this feature.
        We have more than 1 Test projects in a single solution and these test projects are using same third party assemblies but different versions of it - so when the next test case is being executed the conflicting version of dll is picked up and test cases are messed up.

      Feedback and Knowledge Base