cobertura

Exclude methods from code coverage with Cobertura

丶灬走出姿态 提交于 2019-11-26 07:28:06
问题 Is there a way to exclude code from inclusion into Cobertura coverage reports? We have some methods that should not be included in the coverage report and therefore not drive down the coverage numbers. I know that Clover has such a functionality, but I have not found anything similar for Cobertura. 回答1: You can exclude classes from instrumentation. Then they should not appear on reports. See exclude statements below. You can also ignore calls to some methods. See ignore statement below. If

Testng, Emma, Cobertura, coverage and JDK 7 result in ClassFormatError and VerifyError

喜欢而已 提交于 2019-11-26 04:44:52
问题 I have switched to the newest JDK 7 and I am having problems with running testng unit test on byte code that is fiddled by emma coverage tool. None of my test cases are run correctly and for most of them I am receiving such errors. java.lang.ClassFormatError: Illegal local variable table length 10 in method measurement.meter.AbstractSerialPortMeter.<init>(Lmeasurement/meter/SerialPort;)V at measurement.meter.Elc3133aTest.setUp(Elc3133aTest.java:42) I have found an article here JSR 292