1
当测试中的Android活动引发未捕获的异常时,不会生成Emma代码覆盖。但是,如果测试通过,则覆盖率会成功生成!我正在使用SDK r15,Emma 1.6.x macosx和默认的build.xml。以下是ant test
目标的输出:当未捕获的异常被抛出时不会生成Emma代码覆盖
[exec] com.stackoverflow.android.test.ActivityTest:INSTRUMENTATION_RESULT: shortMsg=java.lang.ArithmeticException
[exec] INSTRUMENTATION_RESULT: longMsg=java.lang.ArithmeticException: divide by zero
[exec] INSTRUMENTATION_CODE: 0
[echo] Downloading coverage file into project directory...
[exec] remote object '/data/data/com.stackoverflow.android/coverage.ec' does not exist
这是正常的吗?我对艾玛很陌生,但我知道JaCoCo有时会那么做!请指教。