We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26c6ba2 + cb03227 commit 90e3f5fCopy full SHA for 90e3f5f
pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/tasks/PyCoverageTask.groovy
@@ -73,8 +73,10 @@ class PyCoverageTask extends PyTestTask {
73
String htmlDir = streamProcessor.htmlDir
74
String coverage = streamProcessor.coverage
75
76
-
77
- FileUtils.copyDirectoryToDirectory(project.file(htmlDir), coverageOutputDir)
+ // If there is no coverage to report, then the htmlDir value will be empty
+ if (htmlDir != null) {
78
+ FileUtils.copyDirectoryToDirectory(project.file(htmlDir), coverageOutputDir)
79
+ }
80
81
CoverageXmlReporter coverageXmlReport = new CoverageXmlReporter(coverage)
82
coverageReport.text = coverageXmlReport.generateXML()
0 commit comments