3 Replies Last post: Aug 7, 2014 12:41 PM by Maria Serebryansky  
agileassistance Newbie 3 posts since
Oct 31, 2013
Currently Being Moderated

Aug 5, 2014 10:36 PM

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>

...

Maria Serebryansky Newbie 29 posts since
May 15, 2014
Currently Being Moderated
Aug 7, 2014 12:13 PM in response to: agileassistance
Re: How do I get dotCover to filter out files with a <auto-generated> comment?

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

Maria Serebryansky Newbie 29 posts since
May 15, 2014
Currently Being Moderated
Aug 7, 2014 12:41 PM in response to: agileassistance
Re: How do I get dotCover to filter out files with a <auto-generated> comment?

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

More Like This

  • Retrieving data ...