简体   繁体   English

Visual Studio 2017创建Intellitest无法正常工作

[英]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.

相关问题 Visual Studio 2015 Intellitest不支持64位项目 - Visual studio 2015 Intellitest not working on 64bit projects 使用 Visual Studio 2015 Intellitetest 进行参数化单元测试 - Parameterized Unit Tests with Visual Studio 2015 Intellitest IntelliTest与Visual Studio中的单元测试 - IntelliTest Vs. Unit Test in Visual studio 如何在Visual Studio 2017中创建单元测试(包括数据库)? - How to create Unit Test (include Database) in visual studio 2017? 无法使用Visual Studio 2017 RC进行XUnit测试 - Can't get XUnit tests working with Visual Studio 2017 RC 继续Pex在Visual Studio 2015 RC intellitest中运行,直到动态覆盖块数匹配 - Continue Pex run in Visual Studio 2015 RC intellitest till dynamic coverage block numbers match 在Visual Studio 2015 RC中使用intelliTest记录每个测试场景 - Recording EVERY test scenario run using intelliTest in Visual Studio 2015 RC Visual Studio 2017使用Mocha - Visual Studio 2017 Using Mocha Visual Studio 2017中缺少“创建单元测试”上下文菜单选项(仅适用于VB.NET) - “Create Unit Test” context menu option missing in Visual Studio 2017 (for VB.NET only) 无法在Visual Studio 2017中的“创建单元测试”对话框中显示NUnit - Unable to get NUnit to display in Create Unit Test dialog in Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM