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.
- updated latest android studio (1.2.1)
- updated android plugin in android studio (1.2.3)
- updated gradle version (2.2.1)
- 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
Post a Comment