TFS 2017 VS2017 Enterprise - No test assemblies found matching the pattern: **\release\*test*.dll,!**\obj\**. RRS feed

  • Question

  • 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


    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
    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="" xmlns="http://schemas.microsoft.com/powershell/2004/04">
      <S>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise</S>
    wmic datafile where "name='C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe'" get Version /Value

    No test assemblies found matching the pattern: $(MSBuildProjectDirectory)\**\*test*.dll,$(MSBuildProjectDirectory)\**\bin\x86\Release\*test*.dll"/,!**\obj\**.

    What am I missing?

    Friday, March 22, 2019 7:10 PM

All replies

  • Hi Steve,

    Sorry for this delay in reply.

    According to your description, this issue is more related to TFS. Since this forum is about using visual studio(designer, reported controls, editor and etc), we suggest that you open a new thread on the stack overflow or development community with TFS tag. More community members on that forum may further look at issue and provide more suggestions.

    Thank you for your understanding.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, March 25, 2019 6:00 AM