测试神奇地从 Visual Studio 2013 的测试资源管理器窗格中消失了 [英] Tests magically disappeared from Test Explorer pane in Visual Studio 2013

查看:23
本文介绍了测试神奇地从 Visual Studio 2013 的测试资源管理器窗格中消失了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VS2013 中创建了一个单元测试项目,我正在使用它为我的 SQL Server 2012 数据库创建一个测试套件.

I have created a unit test project in VS2013, and I'm using it to create a test suite for my SQL Server 2012 database.

到目前为止,我已经创建了 4 个测试类,并且一切正常.当我创造了第五个——魔法!所有测试都从测试资源管理器窗口中消失.

I have created 4 test classes so far and everything worked fine. When I created the 5th - magic! All tests disappear from the test explorer window.

我尝试重建项目 - 没有用.也重建了数据库项目;没有用.创建了一个新的单元测试项目,其中包含一个单元测试 - 不起作用.

I tried rebuilding the project - didn't work. Rebuilt the database project too; didn't work. Created a new unit testing project with a single unit test inside it - doesn't work.

有人遇到过这种情况吗?有谁知道该怎么做?请帮忙!

Has this happened to anyone? Does anyone know what to do? Please help!

推荐答案

你在使用 nUnit 吗?我刚搬到新电脑时遇到了类似的情况,导致所有现有测试都消失了.

Are you using nUnit? I've just had a similar situation moving to a new pc, causing all existing tests to disappear.

转到工具 -> 扩展和更新 -> 选择左侧的在线 -> 在右上角的搜索框中输入nunit 测试适配器"并安装.

Go to Tools -> Extensions and updates -> Select Online on the left -> enter in the search box top right 'nunit test adapter' and install it.

一次重建后,测试再次出现.

One rebuild later and the tests appeared again.

这篇关于测试神奇地从 Visual Studio 2013 的测试资源管理器窗格中消失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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