For some reason, the DeploymentEnabled
flag is not taken into account when I run my tests from an orderedtest
; i.e., the DirectoryPath
is as if DeploymentEnabled
was True
, although I explicitly set it to False
in the .runsettings
file.
My question seems to be closely related to this one although no solution was found there.
I run VS Enterprise 2015.
Any clue?
My understanding is that, by design, ordered tests need files to be deployed to work.
Hence, I added similar code everywhere needed in my unit test classes:
In my .runsettings file I set
DeployementEnabled
toTrue
, and it works. The downside being I had many unit tests to update withDeploymentItem
...From Microsoft:
I guess that answers the question.