Resharper没有运行新的单元测试 [英] Resharper not running new unit tests

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

问题描述

当我在测试项目中创建新的NUnit单元测试时,ReSharper单元测试运行器会检测到它们,但是它们仍然是灰色并且无法运行.

When I create new NUnit unit tests in my test project, the ReSharper Unit Test Runner detects them but they remain grey and are not run.

无论我尝试单独运行测试还是一起运行测试,都会出现这种情况.

This behaviour occurs whether I try to run the tests individually or all together.

如果我关闭并重新打开解决方案,则将检测到新测试并正确运行.

If I close and reopen the solution, the new tests are detected and run correctly.

仅当我在运行测试之前使用Visual Studio构建解决方案时,才会发生该行为.如果我让reshaper触发构建,则可以正确检测到测试.

The behaviour only occurs if I build the solution using visual studio before I run the tests. If I let resharper trigger the build the tests are detected correctly.

我正在使用: Visual Studio 2010 锐化器 NUnit 2.5.7

I am using: Visual Studio 2010 ReSharper NUnit 2.5.7

推荐答案

尝试清洁解决方案,并从项目文件夹中删除与RS相关的文件和文件夹.它为我工作.我虽然使用VS2008

Try cleaning the solution and delete RS related files and folders from your project folder. It has worked for me. I use VS2008 though

这篇关于Resharper没有运行新的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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