VS 2015的测试列表? [英] Test lists with VS 2015?

查看:47
本文介绍了VS 2015的测试列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


运行ASP.net 4.5



我需要通过命令行(构建服务器)运行mstest。



显然我可以用 



希望以上有帮助。


如果您有任何疑问,请随时告诉我。


 


祝你好运,


Fletcher












Running ASP.net 4.5

I need to run mstest via the command line (build server).

Apparently I can do this with test lists, but this doc is only for VS 2010 and I have 2015 and I can't see that option in 2015. But I do see something called "playlist"?

Essentially all I want is to define all my test settings in a file and refer to it from the command instead of having to run it each time for each test dll and each individual test.

How do I accomplish this?

解决方案

Dear friend,

Thanks for your posting.

>>But I do see something called "playlist"?

For how to use playlist, which you could several test cases in VS, I could show you the configuration as below:

Step 1 : Select Unit Test methods together for which you want to create a playlist.

Step 2 : Navigate to Add to Playlist –> New Playlist

Once you select the "New Playlist", a Create new file dialog will come up where you need to specify the name of the playlist file.

And That’s all ! You are Done !

You can then group by / run your test based on the playlist you have created.

Once a playlist is selected, all the filters, grouping and other operation on unit test would be applied only to the playlist.

But as you also mentioned run tests by command line, and we have another particular setting for this: test categories, please refer to the official doc below which demonstrate with details:

How to: Group and Run Automated Tests Using Test Categories

Hope above helps.

And please feel free to me know if you have any doubts.

 

Best regards,

Fletcher


这篇关于VS 2015的测试列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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