开发者

Specify configuration file when running Tests on TFS Buid server

开发者 https://www.devze.com 2022-12-08 21:20 出处:网络
We do not have VS Test Edition. So we are running tests by specifying the dll which contains t开发者_如何学JAVAhe tests:

We do not have VS Test Edition. So we are running tests by specifying the dll which contains t开发者_如何学JAVAhe tests:

 <TestContainer Include="$(OutDir)\%2a.Test.dll;$(OutDir)\%2a.Tests.dll"  />

This works OK, except for the Integration tests that need to read information from the configuration file (App.config)

Is their a way to specify the configuration file? Or a better way of doing it?

Thanks

Shiraz


You can simply add a RunConfigFile property to the build as follows:

<RunConfigFile>$(SolutionRoot)\LocalTestRun.testrunconfig</RunConfigFile>
0

精彩评论

暂无评论...
验证码 换一张
取 消