Okay, Emma is killing me. I spent two days on this already.
There two issues with Emma now
- It crashes partly through unit testing
- It complaints about class stamp mismatch. :
com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtime version of class xxx in the coverage data is not consistent with the version of this class in the metadata, possibly because stale metadata is being used for report generation
.
While I can live with the crashes, it only often but I don't intent to fix it,
INSTRUMENTATION_RESULT: shortMsg=Process crashed. [exec] INSTRUMENTATION_CODE: 0
However, I do like to see my coverage result.
I have tried:
- clean the device
- wiped out entire workspace (in Jenkins)
- using the command prompt (bypass jenkins, ant clean, ant emma debug install test)
My understanding of this error is the apk installed and under unit test contains different binaries and hence its metadata info is out of date with the coverage.em generated.
I can confirm this is IMPOSSIBLE in my case, as I clead, ant clean and even wiped out entire work space and the phone memory. It just doesn't make any sense to me now.
Please HELP~
I am using Android sdk r16, NDK 5c, and the default settings from Ant and Emma.