所有测试都在vs2012中跳过

时间:2013-05-30 22:35:21

标签: unit-testing visual-studio-2012 mstest .net-4.5

我在vs2010中有一个项目,并使用了一个testsettings文件,以包含intellitrace,代码覆盖率和测试影响。转换到vs2012之后,一切都运行良好。

然而,当我将我的解决方案中的项目从4.0移动到.net 4.5时,visual studio开始跳过我的所有测试。我搞砸了测试设置,发现unchecking intellitrace导致测试再次起作用。

有谁知道为什么intellitrace会导致.net 4.5跳过测试?有没有办法纠正这种行为?

1 个答案:

答案 0 :(得分:0)

不知道为什么,但同样的事情发生在我身上。

我刚刚在[TestClass]上找到了替换 - > [TestFixture],[TestMethod] - > [测试]并改为使用NUnit。

这解决了这个问题。

相关问题