Teamcity中的NUnit3多个App.config文件 [英] NUnit3 multiple App.config files in Teamcity

查看:87
本文介绍了Teamcity中的NUnit3多个App.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个奇怪的问题.我有很多集成测试项目.每个测试项目都有一个配置文件(app.config).

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

当前,在我的运行集成测试"构建步骤中,NUnit3控制台运行器允许我仅指定一个配置文件(其中显示到应用程序配置文件的路径").我已经指定了我的集成测试app.configs之一的路径.问题是,其他测试项目中的测试失败,因为Nunit3控制台无法识别其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.

我如何让TeamCity在bin/release文件夹中使用自己的app.config文件运行每个测试项目?

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

仅供参考:这是我在NUnit程序集查找中指定的内容:**\bin\Release\*.Integration.Tests.dll

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

推荐答案

结果是,这是我的问题.在删除测试项目之间的所有引用之后,我注意到构建时间减少了50%.

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

这篇关于Teamcity中的NUnit3多个App.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆