搬到VS 2017,测试不再运行 [英] Moving to VS 2017, Tests no longer run

查看:80
本文介绍了搬到VS 2017,测试不再运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在https://github.com/mike-ward/VSColorOutput上有一个Visual Studio 2017扩展项目,我已经维护了多年的单元测试。我不能再在这个项目中运行单元测试了。说有0个被发现的测试。我不知道为什么这个
是。甚至不知道从哪里开始。  我可以在其他(非扩展)项目中运行单元测试。它可能只是一个构建设置但我被卡住了。请帮忙吗?

解决方案

嗨迈克,


感谢您的帖子。


转到工具 - >扩展程序和更新 - >在线,搜索
&n"NUnit测试适配器 " 然后安装它,如果你还没有。


另外,如果你的测试项目设置为目标64位平台,那么测试
不会显示在 NUnit测试适配器中。



 


 



祝你好运,


Fletcher








I have a Visual Studio 2017 Extension project at https://github.com/mike-ward/VSColorOutput with unit tests that I've maintained for years. I can no longer run unit tests in this project. Says there are 0 discovered tests. I'm at a loss as to why this is. Not even sure where to start.  I can run unit tests in other (non extension) projects. It's probably just a build setting but I'm stuck. Help please?

解决方案

Hi Mike,

Thanks for your post.

Please go to Tools -> Extensions and Updates -> Online, search for "NUnit Test Adapter" then install it if you haven't.

Also, if your test project is set to target 64 bit platform, the tests wouldn't show up in the NUnit Test Adapter.

 

 

Best regards,

Fletcher


这篇关于搬到VS 2017,测试不再运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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