in plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotnet/coverage/dotcover/DotCover1_0_ReporterImpl.kt [43:70]
override fun runReportTask(reportFile: File): File {
val resultFile: File = _tempFactory.createTempFile(
_coverageParameters.getTempDirectory(),
COVERAGE_REPORT_NAME,
COVERAGE_REPORT_EXT,
100)
val doc: Document = object : Document() {
init {
addContent(object : Element("ReportParams") {
init {
addContent(object : Element("Source") {
init { text = reportFile.path }
} as Content)
addContent(object : Element("Output") {
init { text = resultFile.path }
} as Content)
addContent(object : Element("IncludeStatementInfo") {
init { text = "true" }
} as Content)
}
})
}
}
_runner.runDotCoverTool("Generate dotCover report", emptyList(), "report", doc)
return resultFile
}