VSInstr 不遵守排除(VS2010)
我在这里不知所措。我们的单元测试由 VSInstr 进行检测,然后由 PerfMon(代码覆盖率)进行分析。我们有一个广泛的排除列表,我们使用:
/EXCLUDE:"boost::*"
/EXCLUDE:"ATL::*"
/EXCLUDE:"UnitTestNamespace::*"
/EXCLUDE:"cppunit::*"
...等等...
当我们的单元测试运行时,代码覆盖率文件为我们提供了所有代码的列表,以及所有被排除的命名空间和类。 VSInstr 未生成任何错误。我们使用 /PROFILE 链接器标志编译单元测试。
以前有人遇到过这个问题吗?
编辑:我尝试仅排除 ATL::,但它仍然包含它。所以我的命令行太长的理论被证明是错误的。
I'm at a loss here. Our unit tests are instrumented by VSInstr and then profiled by PerfMon (code coverage). We have an extensive list of excludes that we use:
/EXCLUDE:"boost::*"
/EXCLUDE:"ATL::*"
/EXCLUDE:"UnitTestNamespace::*"
/EXCLUDE:"cppunit::*"
...etc...
When our unit tests are run, the code coverage file gives us a listing of all of our code, plus all the namespaces and classes that were excluded. No errors were generated by VSInstr. We compile our unit tests with the /PROFILE linker flag.
Has anyone run into this problem before?
EDIT: I tried excluding only ATL::, but it still included it. So my theory that the command line was too long was proven wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们的文件中没有引号字符,例如
CPPCoverageExcludes.txt 如下所示:
No quote characters in ours, e.g.,
where CPPCoverageExcludes.txt looks like this: