Gradle test fails with NullPointerException

徘徊边缘 提交于 2019-12-24 02:35:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!