问题
I get this error when I run gradle test
:
Caused by: org.gradle.api.GradleException: Could not generate test report to '/home/tjwebb/workspace/MyProject/build/reports/tests'.
Groovy 1.7.10
Gradle 1.0-m3
The weird thing is that my tests compile and run perfectly, they pass, and I get the usual output in build/reports/tests
. Any ideas?
回答1:
I guess this was a bug. I upgraded to gradle 1.0-m9 and it works. For some reason, m3
is the version still in the Ubuntu repositories.
来源:https://stackoverflow.com/questions/10066309/gradle-test-fails-with-nullpointerexception