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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.