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
Comment actions Permalink

Hello,

I'm afraid it's not possible to do so. You can either use the attribute or  exclude assemblies, classes or methods by their names.



Kind regards,
Maria

0
Comment actions Permalink

Thanks Maria, do you know if this is on the to-do list for the product?

0
Comment actions Permalink

We have a similar issue in our issue tracker: http://youtrack.jetbrains.com/issue/DCVR-2211 You can follow it to get up-to-date information about its state.



Kind regards,

Maria

0

Please sign in to leave a comment.