如何以编程方式执行单元测试

编程入门 行业动态 更新时间:2024-10-23 19:18:11
本文介绍了如何以编程方式执行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 使用VS2010 Ultimate.我能够创建单元测试,生成测试脚本并手动执行. 问题: 是否可以通过编程方式触发单元测试执行,而不是在Visual Studio中手动执行? 我不是测试人员,只是被分配从事此方面的研究. 在此先感谢. 更多信息 我有网站probject 我有测试项目(在测试项目中,它加载了网站并进行了单元测试) 现在,执行单元测试的唯一方法是通过Visual Studio 2010,当您进入测试视图"选项卡并单击运行选择"图标时. 有什么方法可以以编程方式代替使用Visual Studio 2010来实现?

Hello Guys, Using VS2010 Ultimate. I am able to create unit test, generate test script, and execute it manually. Question: Is it possible to trigger the unit test execution programmatically instead of manually doing it in visual studio? I am not a tester though, was just assigned to research on this. thanks in advance. More Info I have website probject I have Test Project (inside of the test project it loads the website and do unit testing) Right now, the only way to execute unit test is via visual studio 2010 when you go to Test View tab and click the run selection icon. Is there any way to do it programmatically instead of doing it using visual studio 2010?

推荐答案

msdn.microsoft/en-us/library/dd465192.aspx [ ^ ]

更多推荐

如何以编程方式执行单元测试

本文发布于:2023-11-26 00:06:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631879.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单元测试   方式

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!