How to get TeamCity to run tests using MSTest?

前端 未结 1 821
独厮守ぢ
独厮守ぢ 2021-02-05 07:00

I am trying to figure out how to make TeamCity run my MSTests. I have setup a build step using the following parameters:

  • Path to MSTest.exe: %sys
相关标签:
1条回答
  • 2021-02-05 07:31

    Firstly, Ensure the assembly you are trying to test exists at that location.

    ie

    your relative path: Projects\Metadude..Tests\bin\Debug\Metadude..Test.dll

    However I would expect something logged by TC if your file didnt exist. It looks like its running MSTest without any arguments somehow.

    If you are sure the path is correct try it without specifying the .testsettings file to see what happens. I'm using MSTest succesfully in TC without this (but you may need it). The other thing I'm doing different is I specify the FULL path to MSTest.exe, ie

    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe

    instead of their variable '%system.MSTest.10.0%'

    I can't recall why I did this but there would have been a good reason (like it didnt work when using their variable)

    0 讨论(0)
提交回复
热议问题