When a grails directory that is hardcoded within the plugin is missing, an error is thrown:
| Error Error executing script TestApp: : /Users/tomaslin/malo/grails-app/utils does not exist. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
: /Users/tomaslin/malo/grails-app/utils does not exist.
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:483)
at net.sourceforge.cobertura.ant.CommonMatchingTask.baseDir(CommonMatchingTask.java:231)
at net.sourceforge.cobertura.ant.CommonMatchingTask.createArgumentsForFilesets(CommonMatchingTask.java:164)
This makes running the tests within an CI system fail.
When a grails directory that is hardcoded within the plugin is missing, an error is thrown:
This makes running the tests within an CI system fail.
An example is here - https://netflixoss.ci.cloudbees.com/job/asgard-pull-requests/186/console
To reproduce this, create an empty grails app, add code coverage plugin and run tests after deleting the grails-app/utils directory.
The problem will happen when checking in the grails app into git and it ignores the empty directories.
Would be nice to be able to tell plugin to just ignore the error when the directory is not there.