NUnit的运行每个测试两次 [英] Nunit runs each test twice

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

问题描述

我遇到通过NUnit的运行我的测试中的一个问题。我不知道为什么,但每个测试运行两次。问题的关键是,在另一台笔记本电脑上正常运行一次。

I encounter a problem running my tests via NUnit. I dont know why but each test runs twice. The point is that on another laptop it normally runs only one time.

有任何人同样的问题,知道该如何应对呢?

Have anyone the same problem and know how to deal with it?

推荐答案

我有同样的问题。就我而言,我有的Visual Studio扩展和的NuGet包安装。看来他们都在执行测试,导致正在运行两次测试。

I had the same problem. In my case, I had both the Visual Studio extension and the NuGet package of the NUnit Test Runner installed. It seems they were both executing the tests, resulting in tests being run twice.

卸载的Visual Studio扩展解决了这个问题。

Uninstalling the Visual Studio extension solved the issue.

这篇关于NUnit的运行每个测试两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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