Running Universal Windows unit tests from the command line

前端 未结 4 2217
北恋
北恋 2020-12-02 21:37

How do you run Universal Windows (UWP) unit test projects from the command line?

I am using the MSTestFramework.

4条回答
  •  半阙折子戏
    2020-12-02 22:08

    If both Ivan Marinov's and Kylaa's answers didn't work for you (like unfortunately happened to me), try using the appxrecipe of the UWP test app as the target file, and not the appx itself.

    For example:

    vstest.console.exe testProject.build.appxrecipe /platform:x64
    

    https://github.com/Microsoft/vstest/issues/1393

    https://github.com/Microsoft/vstest/issues/1477

提交回复
热议问题