Share via

Vs teest task faield

tarun k 635 Reputation points
2025-08-25T05:38:01.8566667+00:00

Vs test failed with following error :

##[error]Error: The process 'C:\azp\agent_work_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.260.0\Modules\DTAExecutionHost.exe' failed with exit code 1

Azure DevOps
0 comments No comments

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 42,941 Reputation points MVP Volunteer Moderator
    2025-11-21T12:45:22.4533333+00:00

    Hello Tarun !

    Thank you for posting on Microsoft Learn Q&A.

    The real error is usually a few lines earlier in the VSTest logs (for example, no tests discovered, missing test adapter, or failing tests).

    Open the VSTest task logs and check for messages like no tests were found, test adapter not found, or any stack trace before DTAExecutionHost.exe.

    Verify that your Test files pattern (for example **\*test*.dll) matches the output of your build and that you’re using the right test framework settings (Use .NET Core on/off).

    If you’re using distributed test / multi agent options, try disabling them and run tests as a simple VSTest task.

    Try running dotnet test or vstest.console.exe locally with the same test DLLs to see the detailed error.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.