Our VNext builds are created using tfs 2015. The Visual Studio Test step is running fine, but for some applications we want to run the unit tests as a specific user.
Is it possible to do this in the "Visual Studio Test" step, or do I need to use a different approach?
From this article: Test agent, Test Controller and MSTEST FAQ (Qustion 21), it should be also applied to VS test.
So, we can not specify the user in the "Visual Studio Test" step, the test will running with the agent, you can try to change the agent service account to the specific account of the user. Or deploy a new agent to run with the specific account, Reference : Running Unit Tests on different machine during TFS 2015 build