Our CI environment setup with [TFS Server 2015 + Visual studio build tools 2017]. When I try to run C# based unit test on environment it shows this error
TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid ''.
Then I tried to fix the error by fallowing ways
- Installed VS test agent 2015 in the machine https://learn.microsoft.com/en-us/visualstudio/test/lab-management/install-configure-test-agents
- Copied
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow
from my computer to exact location to CI machine.- Changed test runner from
Visual Studio Test Runner
toMS Test Runner
- Changed test runner from
But still same error. Looks like tfs server not able to find the test agent folder. Anyone has idea how to fix this
Seems you have VS 2017 Build Tools installed only, no VS IDE on the CI environment.
Currently to run the VsTest task, the task has dependency on Visual Studio IDE. But some changes will have in the near future.
More details please take a look at the discussion in this issue: vstest capability not detected when installed without Visual Studio