Skip to content

Coverage report contains Control Character symbols #1

@renep

Description

@renep

From openbakery/gradle-xcodePlugin#303

I running coverage task with parameters (see below) and got control character symbol code 27 ('^[') in the report (screenshot attached). Sonar doesn't accept this report because XML can't contain any control symbols.

coverage {
    outputFormat = 'xml'
    exclude = '.h$|.Pods.*m$|.UnitTests.*m$|.ConaxSDKTests.*m$|.NetworkTests.*m$'
}

xcodetest {
    scheme = 'Tests'
    arch = ['x86_64']
    simulator = true
    destination = 'iPad Air 2'
}

xcodebuild {
    scheme = 'MyApp'
    target = 'MyApp'
    configuration = (project.hasProperty('CONFIG') ? CONFIG : 'Release')
    simulator = false
    def mobileProvisionPath = (configuration == 'Debug') ?
            "DefaultBrand/development.mobileprovision" :
            "DefaultBrand/production.mobileprovision"
    def certificatePath = (configuration == 'Debug') ?
            "DefaultBrand/development.p12" :
            "DefaultBrand/production.p12"
    signing {
        mobileProvisionURI = [file(mobileProvisionPath).toURI()]
        certificateURI = file(certificatePath).toURI()
        certificatePassword = ''
    }
}

screen shot 2016-10-17 at 12 56 22 pm

Could you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions