Hi, thanks for posting.
At the moment, there is no feature that will let you handle this directly on a macro-level. You're welcome to request one
on uservoice if you like.
There are some other options below that might get you close to what you are after:
- You can turn off the code coverage for an entire project/assembly by turning off the 'Instrument output assembly' project-level configuration setting
- It's possible to turn off code coverage using comments in the code. If its possible to change the auto generation template this could work well -
http://www.ncrunch.net/documentation/concepts_code-coverage-suppression.
- If the generated code is all under the same namespace, you can exclude it from metrics aggregation in the Metrics Window so that it won't be applied to your metrics totals. I suggest this as I assume the reason you want to exclude this code is to remove its impact on your metrics.