pinchbv / android-analyzer

Android Gradle plugin for faster Sonarqube integration in Android projects. Supports Detekt and Jacoco out of the box.
http://pinch.nl
GNU General Public License v3.0
91 stars 16 forks source link

Unable to upload the testcoverage report to sonarqube #8

Closed priyamadan closed 4 years ago

priyamadan commented 5 years ago

Following the instructions in the readme and for some reason the junit coverage report is not getting uploaded to sonarqube

AndroideRob-zz commented 4 years ago

Thanks for submitting the issue. Could you please share your module-level build.gradle file? I am particularly interested in the androidAnalyzer, productFlavors and buildTypes. Thank you.

AndroideRob-zz commented 4 years ago

Closing due to inactivity

franrx commented 4 years ago

I'm having the same problem, I can see the junit coverage on my local, but not on my sonarqube.

androidAnalyzer { applicationId = 'android-carsharing' projectName = 'android-carsharing' projectVersion = '1.0.0' detekt = true unitTestCoverage = true packageName = 'android-carsharing' buildVariant = 'flavorXBitrise' serverUrl = 'http://localhost:9000' }

buildTypes {

    debug {
        minifyEnabled false
        multiDexEnabled true
        testCoverageEnabled = true
        applicationIdSuffix ".debug"
    }

    bitrise {
        minifyEnabled false
        multiDexEnabled true
        debuggable true
        testCoverageEnabled = true
        applicationIdSuffix ".bitrise"
    }
    dynamic {
        minifyEnabled false
        multiDexEnabled true
        debuggable true
        testCoverageEnabled = true
        applicationIdSuffix ".staging"
    }
    customer_support {
        minifyEnabled false
        multiDexEnabled true
        debuggable true
        testCoverageEnabled = true
    }
    release {
        minifyEnabled false
        multiDexEnabled true
    }
}

productFlavors {
    flavorA {
        applicationId "---"
        dimension "default"
    }

    flavorB {
        applicationId "---"
        dimension "default"
    }
   flavorC {
        applicationId "---"
        dimension "default"

    }

}

for security reasons I can't share the internal names of the productFlavors.