Does VS2010 Code Coverage support nUnit?

后端 未结 9 1932
情深已故
情深已故 2020-12-25 12:35

According to this schema VS2010 Premium and Ultimate has a tool for checking Code Coverage - together with a few other testing tools. Does this support nUnit too, or just MS

9条回答
  •  天涯浪人
    2020-12-25 13:31

    Theoretically, it should. There is even documentation for it on MSDN. Basically, you need to set up a "generic test project" which wraps the NUnit test. In practice, I've been trying to get it to work for almost three hours now and it still doesn't. The assembly is instrumented, but there are no coverage results.

    I always get this message: "Empty results generated: none of the instrumented binary was used. Look at test run details for any instrumentation problems.", but no problems are reported in that file.

    Also, a VSPerf error in the event log pops up. I submitted this as a bug to Microsoft. However, this might be related to my machine. Since I submitted that bug just now, I don't know yet whether others can reproduce the issue or not.

提交回复
热议问题