Sonar + JaCoco not counting Groovy code as covered
问题 I have a Groovy class with a single static method: class ResponseUtil { static String FormatBigDecimalForUI (BigDecimal value){ (value == null || value <= 0) ? '' : roundHalfEven(value) } } It has a test case or few: @Test void shouldFormatValidValue () { assert '1.8' == ResponseUtil.FormatBigDecimalForUI(new BigDecimal(1.7992311)) assert '0.9' == ResponseUtil.FormatBigDecimalForUI(new BigDecimal(0.872342)) } @Test void shouldFormatMissingValue () { assert '' == ResponseUtil