How can I fail a TeamCity build if dotCover doesn't report a high enough result?
问题 I would like TeamCity to run my mSpec tests and report on the code covered by the tests. I would also like TeamCity to report that a build has failed if code coverage in certain namespaces doesn't meet a threshold (e.g. MyProduct.ImportantStuff must be 100% , but MyProduct.LegacyStuff must be [ 23% or whatever it currently is to ensure we don't add new stuff without covering tests ]. I initially looked at dotCover as it's integrated into TeamCity. I have since been looking at OpenCover as I