admin管理员组文章数量:1312945
I have the following config for dotCover:
dotcover-filters.xml
<?xml version="1.0" encoding="utf-8"?>
<AttributeFilters>
<AttributeFilterEntry>
<ClassMask>System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute</ClassMask>
</AttributeFilterEntry>
</AttributeFilters>
If I run dotnet dotcover test --dcReportType=HTML
then the report is generated properly.
If I run dotnet dotcover test --dcReportType=HTML --dcFilters=+:.\dotcover-filters.xml
then the report is empty.
I currently have zero instances of [ExcludeFromCodeCoverage]
yet.
My goal is to use [ExcludeFromCodeCoverageAttribute]
to indicate that certain code should not be assessed for coverage.
What am I doing wrong?
本文标签: netUsing a config file with dotCover CLI seems ot filter out all codeStack Overflow
版权声明:本文标题:.net - Using a config file with dotCover CLI seems ot filter out all code - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741879164a2402643.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论