0

How do I get dotCover to filter out files with a <auto-generated> comment?

Is there a way to make dotCove ignore all files that have the '// <auto-generated>' comment at the top, e.g. for Entity Framework generated classes?
I'm aware of the [ExcludeFromCodeCoverage] attribute and use it for other scenarios.

//-----------------------------------------------------------------------------‌​-
// <auto-generated>
//     This code was generated from a template. //
//     Manual changes to this file may cause unexpected behavior in your application.
//     Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
...


3 comments

Please sign in to leave a comment.