简体   繁体   English

我们可以在 Visual Studio 2013 中自动生成 nunit 测试用例吗

[英]Can we auto generate nunit test cases in visual studio 2013

我必须在 Visual Studio 2013 专业版中为由 aspx.cs 文件组成的巨大应用程序编写 nunit 测试用例,如果可能,我是否可以使用此版本或任何其他更好的想法来自动生成测试用例来编写测试用例,因为它包含更多的依赖和复杂性

you are lucky, because in fact you can (partially).你很幸运,因为事实上你可以(部分)。 It is true the guys above wrote.楼上的人写的是真的。 You can not let software test software because it doesn't know what the requirements oft a unit under test are.你不能让软件测试软件,因为它不知道被测单元的要求是什么。

BUT you can use Test Case generation tools such as devmate, which is a visual studio extension但是您可以使用测试用例生成工具,例如 devmate,这是一个 Visual Studio 扩展

devmate is gathering the input values of your testmethod and providing a test model editor. devmate 正在收集测试方法的输入值并提供测试模型编辑器。 You than have to create input values, testcases and output values considering the requirments and than >>> you can auto generate testcode .您必须根据要求创建输入值、测试用例和输出值,然后 >>>您可以自动生成测试代码

here is a link to the extension in the Visual Studio Marketplace .这是Visual Studio Marketplace 中扩展的链接。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM