简体   繁体   English

使用 IntelliTest 为我的代码生成单元测试

[英]Generate unit tests for my code by using IntelliTest

I found that I can use IntelliTest to generate unit tests for my code.我发现我可以使用IntelliTest为我的代码生成单元测试。 I am using Visual Studio Enterprise 2019 , but I don't see this option when I right-click on a method.我使用的是Visual Studio Enterprise 2019 ,但是当我右键单击某个方法时没有看到此选项。

视觉工作室

Should I download something?我应该下载一些东西吗?

Could it be related to my answer on Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard?这可能与我对Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard 的回答有关吗? ? ? In a nutshell, if your app targets .NET Core there is a bug that needs to be upvoted in order to have this functionality fix.简而言之,如果您的应用以 .NET Core 为目标,则需要对一个错误进行投票才能修复此功能。

TL&DR: Visual Studio Enterprise 2022 also does NOT have this capability! TL&DR:Visual Studio Enterprise 2022 也不具备此功能!

IntelliTest is available in Enterprise edition only. IntelliTest 仅在企业版中可用。 It is supported for C# code that targets the .NET Framework.它支持针对 .NET 框架的 C# 代码。 .NET Core and .NET Standard are not currently supported.目前不支持 .NET Core 和 .NET Standard。

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

相关问题 在代码和单元测试中处理条件 package 引用 - Handling conditional package references in code and unit tests NUnit 不会运行我的单元测试; 说缺少测试适配器,但我确实安装了它 - NUnit won't run my unit tests; says that the test adapter is missing, but I did install it NET CORE - 单元测试 - CustomWebApplicationFactory - NET CORE - Unit Tests - CustomWebApplicationFactory 在 Visual Studio 2019 中未发现单元测试 - Unit tests not discovered in Visual Studio 2019 升级到 .NET 6.0 后单元测试失败 - Unit Tests fail after upgrade to .NET 6.0 Visual Studio 2019 IntelliTest 与 .NET Core、.NET Standard 的兼容性? - Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard? 如何在Visual Studio 2019中使用.NET 4.6.2版运行单元测试? - How to run unit tests with .NET version 4.6.2 in Visual Studio 2019? 在 VS 2019 中运行时所有单元测试都不确定 - All unit tests Inconclusive when run in VS 2019 测试资源管理器中缺少 Visual Studio 2019 单元测试,但在实时单元测试中显示 - Visual Studio 2019 unit tests missing in test explorer but show in live unit testing 未解析的外部符号x-在同一解决方案中使用一个Visual Studio项目的增强测试进行另一个项目的测试代码 - Unresolved external symbol x - using boost tests from one visual studio project testing code of another project in the same solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM