copying to teamcity's out directory before running unit tests

后端 未结 1 585
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 09:03

So my situation is that I finally finished configuring TeamCity for CI. I got it to run my unit tests with some friendly help on SO.

However, many unit tests fail be

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-19 09:33

    Your problem is not to do with TeamCity I don't think, it's to do with the way that MSTest works. You need your .config file to be a DeploymentItem and have your tests deploy it to the directory that MSTest will run the tests in.

    To be honest I'm surprised that you don't have this problem running locally, and it makes me think that you must be using some other test runner (like ReSharper) to run the tests if you have not seen this problem on your local machines.

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