-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Low
-
Affects Version/s: 3.1.8
-
Component/s: Groovy
-
Severity 3 - Minor
Adding @CompileStatic to a tested Groovy class results in 0% coverage for static methods.
e.g.
//All ok here class MyClass{ String sayHello(){ 'hello' //Full coverage shown by Clover } static String sayHelloAgain(){ 'hello again' //Full coverage shown by Clover } } //Same class with the annotation @CompileStatic class MyClass{ String sayHello(){ 'hello' //Full coverage shown by Clover } static String sayHelloAgain(){ 'hello again' //***No coverage shown by Clover*** } }
Can anyone confirm this? Thanks.