linkedin / pygradle

Using Gradle to build Python projects
https://github.com/linkedin/pygradle
Apache License 2.0
586 stars 147 forks source link

Added a null check for the htmlDir in PyCoverageTask #325

Closed elautz closed 4 years ago

elautz commented 4 years ago

Handling of an edge case: If the user configures the project to run covergae but there is no coverage output (i.e. no coverage to report), the htmlDir parsed from the output will ultimately be null, and thus the call to project.file(htmlDir) fails with IllegalArgumentException: path may not be null or empty string. path='null'