Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can OpenClover work along with JDO enhancment?

Avinav Sharan June 15, 2018

 

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?

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 24, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events