What exactly is in the .ec and .em files?

  • Brent

    Brent - 2011-10-13

    Is it possible to parse them and generate my own reports?

  • Brent

    Brent - 2011-10-13

    I know that they contain the metadata about the classes, methods, etc. and also the runtime coverage data but more specifically what is their internal structure? Am I better off parsing the thousands of HTML files that are generated?

  • Marc R. Hoffmann

    If I remember correctly these files contain serialized Java objects. So instead of writing your own parser may use APIs provided in emma.jar to read those files, see com.vladium.emma.data.DataFactory as a starting point. You can take a look at the EclEmma 1.x source base which utilized these APIs.

  • Brent

    Brent - 2011-10-17

    Thank you for the reply.

  • Nikstvp

    Nikstvp - 2012-02-19

    Is it not possible to deserialize  or restore the file? will that not work? I need to create my own report which contains the source lines. please help me out.
    (I'm new to emma. please pardon me if I my comment is an under-informed one.)


Log in to post a comment.