NUnit3 multiple App.config files in Teamcity

时间秒杀一切 提交于 2019-12-11 14:24:05

问题


I'm having a strange problem. I have a bunch of integration tests projects. Each test project has a configuration file (app.config).

Currently, in my "Run Integration Tests" build step, the NUnit3 console runner allows me to specify only one config file (where it says "Path to application configuration file"). I have specified the path to one of my integration test app.configs. The problem is, the tests in other test projects fail because the Nunit3 console doesn't recognize their app.config files.

How can I have TeamCity run each test project with its own app.config file in its bin/release folder?

FYI: This is what I have specified in the NUnit assembly lookup: **\bin\Release\*.Integration.Tests.dll


回答1:


Turns out, this was my problem. After removing all references between my test projects, I noticed that the build time was reduced by 50%.



来源:https://stackoverflow.com/questions/50491319/nunit3-multiple-app-config-files-in-teamcity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!