How can I exclude namespaces in code coverage with Team City?
Asked Answered
B

1

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!

Bushcraft answered 4/10, 2012 at 14:48 Comment(3)
Looks like duplicate of #5632033Spur
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.*Spur
Yes, I have tried It until I got success. I expected to have some filter like -:assemblyName;namespace=namespace but it doesn´t exists :(. THANKSBushcraft
B
38

Finally I have found the way to exlude NAMESPACES

-:assemblyName;type=nameSpace.*

Bushcraft answered 5/10, 2012 at 7:18 Comment(5)
In all of internet, this is the only answer that actually does it. Whoever's looking has to look here. Great job cdiazalIsiah
Great, I'm glad to help all the internet ;)Bushcraft
Works a treat! ThanksGeniality
@Bushcraft 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.Greengrocery
@Greengrocery maybe this have changed in newer versions, sorry but now I am using Azure DevOps I can´t help you this time.Bushcraft

© 2022 - 2024 — McMap. All rights reserved.