I enabled jacoco code coverage using following code to build file

buildTypes {
debug { testCoverageEnabled true }
}

test are running and reports are generated 
*"buildDir/ouptuts/reports/coverage/".*
But I require the path to generated* jacoco.exe* so that i can sync the 
reports to SONARQUBE server.

Configurations:
Gradle version: 1.11
Android Gradle plugin:0.11.+
Emulator: Android-19
App Target SDK :19

my logcat gives me below information when i run *"connectedCheck"* 

java.io.FileNotFoundException: /jacoco.exec: open failed: EROFS (Read-only 
file system)

  at libcore.io.IoBridge.open(IoBridge.java:409)

  at java.io.FileOutputStream.<init>(FileOutputStream.java:88)

  at 
org.jacoco.agent.rt.internal_932a715.output.FileOutput.openFile(FileOutput.java:67)

  at 
org.jacoco.agent.rt.internal_932a715.output.FileOutput.startup(FileOutput.java:49)

  at org.jacoco.agent.rt.internal_932a715.Agent.startup(Agent.java:122)

  at org.jacoco.agent.rt.internal_932a715.Agent.getInstance(Agent.java:50)

  at org.jacoco.agent.rt.internal_932a715.Offline.<clinit>(Offline.java:31)

  at com.example.myandroid.SampleObject.$jacocoInit(SampleObject.java)

  at com.example.myandroid.SampleObject.<init>(SampleObject.java)

  at 
com.example.myandroid.tests.MyAndroidAppActivityTest.testRunIt(MyAndroidAppActivityTest.java:20)

  at java.lang.reflect.Method.invokeNative(Native Method)

  at java.lang.reflect.Method.invoke(Method.java:515)

  at junit.framework.TestCase.runTest(TestCase.java:168)

  at junit.framework.TestCase.runBare(TestCase.java:134)

  at junit.framework.TestResult$1.protect(TestResult.java:115)

  at junit.framework.TestResult.runProtected(TestResult.java:133)

  at junit.framework.TestResult.run(TestResult.java:118)

  at junit.framework.TestCase.run(TestCase.java:124)

  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

  at 
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

  at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)

    Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only 
file system)

  at libcore.io.Posix.open(Native Method)

at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)

  at libcore.io.IoBridge.open(IoBridge.java:393)

  ... 21 more

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to