Visual Studio 2015 N单元测试运行3次

时间:2021-10-18 02:43:28

I have created a Selenium WebDriver Test In which I am using N Unit to Run the Test from Test Explorer. The test is running fine but it runs a total of 3 times. I have tried do some self diagnosis but cant seem to find a solution. If this helps here are the references I am calling in my solution. I tried to narrow the list as much as possible but it continues to repeat regardless.

我创建了一个Selenium WebDriver测试,在这个测试中,我使用N个单元从Test Explorer运行测试。测试运行良好,但总共运行了3次。我试过自我诊断,但似乎找不到解决办法。如果这对我的解决方案有帮助的话,这里是我正在调用的引用。我试图尽可能地缩小列表范围,但不管怎样,它仍在重复。

Visual Studio 2015 N单元测试运行3次

1 个解决方案

#1


0  

Credit to both @Buaban and @Charlie. Looks like I was running the test from 3 places:

感谢@Buaban和@Charlie。看起来我是从3个地方进行测试的:

NUnitTestAdapter (vsix extention)

NUnitTestAdapter(vsix延伸)

NUnitTestAdapter (nuget package)

NUnitTestAdapter(nuget包)

NUnitTestAdapter.WithFramework (nuget package)

NUnitTestAdapter。WithFramework(nuget包)

I removed the first 2 items and kept the .WithFramework nuget package.

我删除了前两项,保留了。withframework nuget包。

#1


0  

Credit to both @Buaban and @Charlie. Looks like I was running the test from 3 places:

感谢@Buaban和@Charlie。看起来我是从3个地方进行测试的:

NUnitTestAdapter (vsix extention)

NUnitTestAdapter(vsix延伸)

NUnitTestAdapter (nuget package)

NUnitTestAdapter(nuget包)

NUnitTestAdapter.WithFramework (nuget package)

NUnitTestAdapter。WithFramework(nuget包)

I removed the first 2 items and kept the .WithFramework nuget package.

我删除了前两项,保留了。withframework nuget包。