-
Task
-
Resolution: Won't Do
-
Minor
-
None
It'd be handy to be able to add CPS-transformed code from a plugin (i.e., JENKINS-37011 or a GlobalVariable) to code coverage.
- relates to
-
JENKINS-37011 Provide a way to write full-fledged Steps in CPS-transformed Groovy
-
- Resolved
-
I do not see any practical way to do this. Code coverage tools typically instrument bytecode. The bytecode generated by the CPS transformer is not going to make any sense to such a tool. So you would have to write a custom extension to the CPS transformer that inserts instrumentation calls directly to a particular code coverage tool, like JaCoCo.
Seems like it is not worth the marginal gains. Better to write as much as you can in Java.