unit testing - How to generate Code Coverage report of Instrumentation test cases in Android Studio -


what working code coverage report of functional unit test cases.

  1. updated latest android studio (1.2.1)
  2. updated android plugin in android studio (1.2.3)
  3. updated gradle version (2.2.1)
  4. changed build variant unit test

now able code coverage report (using default intellij idea code coverage tool) of unit tests wrote extending testcase class. when write class extending androidinstrumentatiotestcase2 or activitytestcase, gettting null when call getactivity(). , when switch build variants instrumentation, run code coverage button disabled.

so, in simple words, want know how code coverage report in test cases both functional unit test cases instrumentation test cases.


ps: other code coverage plugin (like jacoco) can used.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -