Skip to content

Commit

Permalink
Merge pull request #340 from elautz/coverage-bug
Browse files Browse the repository at this point in the history
Changed PyCoverageTask to use getters for coverage outputs
  • Loading branch information
zvezdan authored Mar 3, 2020
2 parents ac5abf8 + 9a5b8ad commit b43f21a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pivy-importer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ task importRequiredDependencies(type: JavaExec) { task ->
'PyYAML:3.02=PyYAML:3.12',
'setuptools:0.6a2=setuptools:19.1.1', // candidate for removal
'setuptools:0.6c1=setuptools:19.1.1',
'sphinxcontrib-websupport:1.2.0=sphinxcontrib-websupport:1.1.2',
'sphinx_rtd_theme:0.1=sphinx_rtd_theme:0.1.1', // candidate for removal
'sphinx_rtd_theme:0.1.0=sphinx_rtd_theme:0.1.1', // candidate for removal
].join(",")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ class PyCoverageTask extends PyTestTask {

// If there is no coverage to report, then the htmlDir value will be empty
if (htmlDir != null) {
FileUtils.copyDirectoryToDirectory(project.file(htmlDir), coverageOutputDir)
FileUtils.copyDirectoryToDirectory(project.file(htmlDir), getCoverageOutputDir())
}

CoverageXmlReporter coverageXmlReport = new CoverageXmlReporter(coverage)
coverageReport.text = coverageXmlReport.generateXML()
getCoverageReport().text = coverageXmlReport.generateXML()
super.processResults(execResult)
}

Expand Down

0 comments on commit b43f21a

Please sign in to comment.