'mstest.exe' is not recognized as an internal or external command, operable program or batch file.

I am using Visual Studio developer command prompt in the github actions, i have setup msbuild path and also setup nuget these 2 things are working fine. But now, i am getting this error

‘mstest.exe’ is not recognized as an internal or external command,operable program or batch file.
So, can you guys help how to setup mstest inside github actions?

@ankitkaushaltr ,

You can try executing the command " where mstest" on Visual Studio developer command prompt to find the path of  mstest.exe , and then add this path to the system  PATH.

In addition, maybe you also can consider using VSTest in your workflow, the following is an action you can use in your workflow to setup  VSTest.

Setup VSTest.console.exe

1 Like

i know the mstest location is “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\MSTest.exe”.

But in workflow run when i am trying to go to this path, it is saying " it does not exist".

So can you guys help, how to use mstest here?