c# - Remove c__DisplayClass from code coverage -
i'm getting c__displayclass files appearing in code coverage analysis appear auto generated code closures (see this link).
my question is, how remove auto generated code code coverage results?
after research, i've discovered can make use of .runsettings file (documentation).
you can customize code coverage results within file so:
<codecoverage> <modulepaths> <exclude></exclude> </modulepaths> <functions> <exclude> <function>.*c__displayclass.*</function> </exclude> </functions> </codecoverage>
this gave me results wanted. auto generated c__displayclass functions excluded results.
Comments
Post a Comment