Hi Ran, JaCoCo does not have an option to exclude parts of a method. We have an open feature request for this:
https://github.com/jacoco/jacoco/issues/14 For a couple of reasons it is very unlikely that such functionality will be added to JaCoCo soon. Regards, -marc On 2017-11-13 14:30, Ran Cohen wrote: > I have general catch blocks, that attached to exceptions almost impossibly > thrown. > Because its almost impossible to cause an exception, and also because they > just re-throw the exception, I don't test them, but Jacoco marks the catch > block as not tested, which is ugly... > How can I tell Jacoco to ignore this blocks (or any other code for that > matter)? > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/0343570e-0e32-4004-b2b3-55afedd4c280%40googlegroups.com > [1]. > For more options, visit https://groups.google.com/d/optout. Links: ------ [1] https://groups.google.com/d/msgid/jacoco/0343570e-0e32-4004-b2b3-55afedd4c280%40googlegroups.com?utm_medium=email&utm_source=footer -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/1d9fae32d6aed776091434ef06c7e0b2%40mountainminds.com. For more options, visit https://groups.google.com/d/optout.
