Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jörg Seibert 10 posts 61 karma points
    Feb 04, 2021 @ 15:04
    Jörg Seibert
    0

    Exclude ModelsBuilder generated code from coverage

    Hi,
    is there a way to set custom attributes on generated code? We've got a test project which references a project which contains generated code built by ModelsBuilder.
    There are tons of classes, so coverage results will be really poor. As there is no point in testing these files, is there a way to exclude them from coverage analysis?
    Unfortunately we cannot use runconfig in our set up, but using attribute [ExcludeFromCodeCoverage] would work.

    It would be nice to have a setting to be able to include custom attributes, similar to setting namespace for generated classes.

Please Sign in or register to post replies

Write your reply to:

Draft