I have an application in which I build the application, then I build the Unit test for the application, I then perform the VStest on my build server. the results Are as in the title "No test assemblies found matching the pattern: **\release\*test*.dll,!**\obj\**."
I have verified that the Test Controller and Test Agent are on my Build Server.
in the test Assemblies I have
$(MSBuildProjectDirectory)\**\*test*.dll
$(MSBuildProjectDirectory)\**\bin\x86\Release\*test*.dll"/
!**\obj\**
This all works in Visual Studio 2017 Enterprise, I'm not sure what is missing.
==============================================================================
Task : Visual Studio Test
Description : Run tests with Visual Studio test runner
Version : 2.0.55
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=835764)
==============================================================================
Run the tests locally using vstest.console.exe
========================================================
Test selector : Test assemblies
$(MSBuildProjectDirectory)\**\bin\x86\Release\*test*.dll"/
!**\obj\**
Test assemblies : $(MSBuildProjectDirectory)\**\*test*.dll,$(MSBuildProjectDirectory)\**\bin\x86\Release\*test*.dll"/,!**\obj\**
Test filter criteria : null
Search folder : D:\TFSVSOWork\5\s
Run settings file : D:\TFSVSOWork\5\s
Run in parallel : true
Run in isolation : false
Path to custom adapters : null
Other console options : null
Code coverage enabled : true
VisualStudio version selected for test execution : 15.0
powershell -NonInteractive -ExecutionPolicy Unrestricted -file D:\TFSVSOWork\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.0.55\vs15Helper.ps1
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<S>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise</S>
</Objs>
wmic datafile where "name='C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe'" get Version /Value
Version=15.0.28307.421
Version=15.0.28307.421
========================================================
No test assemblies found matching the pattern: $(MSBuildProjectDirectory)\**\*test*.dll,$(MSBuildProjectDirectory)\**\bin\x86\Release\*test*.dll"/,!**\obj\**.
What am I missing?