We have a gradle project that uses jdo enhancement. Basically:
The enhancer post-processes the bytecode generated by your Java compiler, adding the necessary fields and methods to implement the required persistence features.
When I try to add test coverage using the open clover plugin - my tests begin to fail. This is because OpenClover uses source code instrumentation.
OpenClover moved the 'jdo-enhanced' classes as a backup - and built its own instrumented version of the classes, therefore losing all the jdo-enhancements.
Given this quandary, is it possible to use openClover (source code instrumentation) and jdo enhancement together? Is it even theoretically possible?
Duplicate of:
https://stackoverflow.com/questions/50828361/can-openclover-work-along-with-jdo-enhancment?
OpenClover moved the 'jdo-enhanced' classes as a backup - and built its own instrumented version of the classes, therefore losing all the jdo-enhancements.
Please try to run OpenClover instrumentation first (before JDO code is added) and run JDO after that.
It may also happen that you will need to exclude Clover fields (they're being added to every top-level class) from being instrumented by JDO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.