[英]Visual studio 2017 create Intellitest not working
Note: Answering my own problem for future developers. 注意:为将来的开发人员回答我自己的问题。
I right click a Method > Create Intelli Tests. 我右键单击“方法”>“创建智能测试”。
I choose the MSTestv2, chose the Project.Test project, click OK and see the following output: 我选择了MSTestv2,选择了Project.Test项目,单击“确定”,然后看到以下输出:
Processing Proj.API 处理Proj.API
Scanning assembly references in Proj.API Applying 在Proj.API中扫描程序集引用
template AssemblyInfo to Proj.API Applying template Tests to Proj.API 模板AssemblyInfo到Proj.API将模板测试应用到Proj.API
test stubbing ProductController -> ProductControllerIntelliTest 测试存根ProductController-> ProductControllerIntelliTest
generating method bodies 生成方法主体
flushing generated code 刷新生成的代码
Unfortunately the Test.cs file is NOT created. 不幸的是,没有创建Test.cs文件。
I've set all projects x86 and that doesn't make a difference. 我已经将所有项目设置为x86 ,并且没有任何区别。
Does anyone know why this doesn't work? 有谁知道为什么这不起作用?
For some reason I had to specify a New Project for the Intelli Tests. 由于某种原因,我不得不为Intelli Tests指定一个新项目。
Creating new IntelliTests in the new project work, however they cant be added to the standard Test Project. 在新项目中创建新的IntelliTest,但是不能将它们添加到标准测试项目中。
Hopefully someone else knows why. 希望其他人知道原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.