17

I am using Team City 7.1.1 (build 24074), and I would like to exclude some namespaces in code coverage. I am using dotcover as code coverage tool. I am using MSPec, Machine.Fakes and Rhino Mocks in my tests.

Thanks!

cdiazal
  • 988
  • 11
  • 28
  • Looks like duplicate of http://stackoverflow.com/questions/5631533/how-do-i-exclude-types-and-methods-from-being-covered-by-dotcover-in-teamcity-6 – Pavel Bakshy Oct 04 '12 at 17:04
  • 1
    But in this case exclude namespace means exclude all types from it. Did you try example from that question? `+:Omnyx.Scanner -:Omnyx.Scanner;type=Omnyx.Scanner.Simulation.*` – Pavel Bakshy Oct 05 '12 at 07:11
  • Yes, I have tried It until I got success. I expected to have some filter like -:assemblyName;namespace=namespace but it doesn´t exists :(. THANKS – cdiazal Oct 05 '12 at 07:52

1 Answers1

38

Finally I have found the way to exlude NAMESPACES

-:assemblyName;type=nameSpace.*

cdiazal
  • 988
  • 11
  • 28
  • 1
    In all of internet, this is the only answer that actually does it. Whoever's looking has to look here. Great job cdiazal – Gopi Sep 11 '17 at 21:45
  • Great, I'm glad to help all the internet ;) – cdiazal Sep 12 '17 at 07:31
  • 1
    Works a treat! Thanks – maurocam Jul 04 '18 at 14:25
  • @cdiazal but I think we don'r have argument by name :-assemblyName only we have Module, class mask and function. And type= is the name of the namespace we want to exclude please correct me if I am wrong I am new to this. – NetSurfer Apr 20 '20 at 18:20
  • @NetSurfer maybe this have changed in newer versions, sorry but now I am using Azure DevOps I can´t help you this time. – cdiazal Apr 21 '20 at 06:52