简体   繁体   English

.runsettings文件在哪里?

[英]Where does the .runsettings file go?

I want to exclude some files from code coverage in our unit tests. 我想在单元测试中从代码覆盖中排除一些文件。 I've learned that the thing to use is a XML file with an extension of .runsettings. 我已经知道要使用的是一个扩展名为.runsettings的XML文件。 Where does the .runsettings file go? .runsettings文件在哪里? Does it go in the unit test project? 它是否属于单元测试项目? Or does it go in the project that's being tested by the unit tests project? 或者它是否进入了由单元测试项目测试的项目? Or is the .runsettings file all by its lonesome under the solution? 或者.runsettings文件是否完全由解决方案下的寂寞?

I'm using VS 2015. 我正在使用VS 2015。

Put it wherver you like. 把它放在你喜欢的地方。 In VS 2015 you can specify the path and name for your .runsettings 在VS 2015中,您可以指定.runsettings的路径和名称

Menue: Test->Test Settings-> Select Test Settings File 菜单:测试 - >测试设置 - >选择测试设置文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NUnit 忽略了运行设置文件中的 DomainUsage - NUnit is ignoring DomainUsage in the runsettings file 关于连接字符串覆盖的 runsettings 文件的建议 - Recommendations on runsettings file for connection string override DeploymentEnabled false 在我的运行设置文件中不起作用 - DeploymentEnabled false is not working in my runsettings file 为什么不能在运行设置文件中指定TestAdaptersPaths? - Why can't I specify TestAdaptersPaths in my runsettings file? VS2013 CodeCoverage.exe运行设置文件从不解析 - VS2013 CodeCoverage.exe runsettings file never parses “转到定义”版本号从何而来? - Where does the “Go To Definition” version number come from? VSTest:MSTest V2适配器不支持testsettings文件或ForcedLegacyMode设置为true的runsettings。没有测试可用 - VSTest: A testsettings file or a runsettings with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter. No test is available VSTS负载测试-如何动态读取当前正在运行的负载测试文件的运行设置 - VSTS Load Testing - How to read runsettings dynamically of currently running load test file 如何通过运行设置文件从代码覆盖率分析结果中排除迁移文件夹? - How to exclude migration folder from code coverage analyze result by runsettings file? 有没有.runsettings文件? - Is there any .runsettings documentation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM