I have this class AspNetCoreGeneratedDocument.Views_Users__AddOrUpdateUser appearring in the code coverage result for each view in the Views folder,
Exemple: AspNetCoreGeneratedDocument.Views_Users__AddOrUpdateUser AspNetCoreGeneratedDocument.Views_Users__GetUser etc...
Assembly: Solution.Web Class: AspNetCoreGeneratedDocument
I want to exclude this folder using the .runsettings file:
<?xml version="1.0" encoding="utf-8" ?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat code coverage">
<Configuration>
<!-- Globbing filter -->
<ExcludeByFile>**/Solution.Web/Views/*.cshtml</ExcludeByFile>
<IncludeTestAssembly>false</IncludeTestAssembly>
<DeterministicReport>false</DeterministicReport>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
this is the result i want: this image is from dotCover it allows creating a filter easily
