All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.teamscale.config.TestwiseCoverageConfiguration.kt Maven / Gradle / Ivy

Go to download

A Gradle plugin that supports collecting Testwise Coverage and uploading reports to Teamscale.

There is a newer version: 29.0.0
Show newest version
package com.teamscale.config

import com.teamscale.TestImpacted
import com.teamscale.client.EReportFormat
import org.gradle.api.Project
import java.io.File

/** Configuration for the testwise coverage report. */
open class TestwiseCoverageConfiguration(project: Project, task: TestImpacted) :
    ReportConfigurationBase(EReportFormat.TESTWISE_COVERAGE, project, task) {
    init {
        destination.set(partition.map { partition ->
            project.objects.fileProperty().fileValue(
                File(
                    project.rootProject.buildDir, "reports/testwise-coverage/${task.name}/${
                        partition.replace(
                            "[ /\\\\]".toRegex(),
                            "-"
                        )
                    }.json"
                )
            ).get()
        })
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy