Exclude specific methods from code coverage from cobertura?

Viewed 4180

I was trying to ignore all the toString() methods from instrumentation using following configuration. This wasn't really working? This is using cobertura as maven plugin. This was based on a previous answer Exclude methods from code coverage with Cobertura.

<instrumentation>
    <ignores>
        <ignore>toString</ignore>
    </ignores>
</instrumentation>

What do you think I'm doing wrong. I wasn't able to find an example for this on the cobertura documentation.

1 Answers
Related