Hi,
I had instrumented all the jars in a particular directory,to produce a coverage.em. Now I want to remove the coverage for most of the classes. So there a way i can hack the .em file to remove the metadata.
Also,is the .em and .ec file formats documented someplace ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Removing metadata from an .em file is not possible at the moment. EMMA was designed with a mindset that users will filter early, at the instrumentation time. However, some users have convinced me that it can be convenient to instrument everything and filter later, at report generation time. I agreed and this is a pending RFE: http://sourceforge.net/tracker/index.php?func=detail&aid=1059959&group_id=108932&atid=651900
Right now, your only option is to start again and this time not instrument everything by using an appropriate filter (Chapter 6 in the reference manual explains those in detail).
.em and .ec file formats are not documented. You would have to read code in DataFactory to understand ithem. The format design is biased towards serialization speed and making appends as transactional as possible (but supporting a flexible manipulation API).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I had instrumented all the jars in a particular directory,to produce a coverage.em. Now I want to remove the coverage for most of the classes. So there a way i can hack the .em file to remove the metadata.
Also,is the .em and .ec file formats documented someplace ?
Removing metadata from an .em file is not possible at the moment. EMMA was designed with a mindset that users will filter early, at the instrumentation time. However, some users have convinced me that it can be convenient to instrument everything and filter later, at report generation time. I agreed and this is a pending RFE: http://sourceforge.net/tracker/index.php?func=detail&aid=1059959&group_id=108932&atid=651900
Right now, your only option is to start again and this time not instrument everything by using an appropriate filter (Chapter 6 in the reference manual explains those in detail).
.em and .ec file formats are not documented. You would have to read code in DataFactory to understand ithem. The format design is biased towards serialization speed and making appends as transactional as possible (but supporting a flexible manipulation API).