Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以使用 TFS API 读取代码覆盖率信息?我对阅读类级别和方法级别的覆盖更感兴趣;
使用 CoverageAnalysisManager,我们能够获得包含 BlocksCovered 等详细信息的程序集级别覆盖率。
谢谢,维贾亚
请参阅以下链接以开始使用
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.coverage.analysis.coverageinfo.aspx
http://blogs.msdn.com/b/phuene/archive/2009/12/01/programmatic-coverage-analysis-in-visual-studio-2010.aspx