如何以编程方式执行单元测试 [英] How to execute unit test programmatically

查看:84
本文介绍了如何以编程方式执行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

使用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?

推荐答案

http://msdn.microsoft.com/en-us/library/dd465192.aspx [

这篇关于如何以编程方式执行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆