no coverage.ec file generated

Anonymous
2012-01-17
2013-05-09

  • Anonymous
    2012-01-17

    Hello,

    I have used offline instrumentation to instrument the classes and want to check coverage after executing the test suite that I have.
    However, I am seeing that no coverage.ec file is being generated when all the test cases have been executed through automation although the file was successfully generated when I manually executed few tests or executed few test cases via automation. Don't know what the problem could be.
    Can somebody please help with me with this query?
    Thanks.

     
  • Hi,

    there are two things to check:

    1) What is your working directory in case of automated execution? Maybe the file is created at a different location.
    2) Make sure the JVM terminates properly.

    Cheers,
    -marc

     

  • Anonymous
    2012-01-18

    Thanks Marc,

    Your 2nd point(jvm not terminating) was the reason that the coverage.ec file was not being generated. Now I am using ctl tool to get the coverage file without terminating jvm.
    Thanks.