Gradle测试失败,出现NullPointerException [英] Gradle test fails with NullPointerException

查看:206
本文介绍了Gradle测试失败,出现NullPointerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 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

Groovy 1.7.10
Gradle 1.0-m3

奇怪的是我的测试编译和运行完美,他们通过,我得到了通常的输出结果在 build / reports / tests 。任何想法?

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?

推荐答案

我想这是一个错误。我升级到gradle 1.0-m9,它的工作原理。出于某种原因, m3 是仍在Ubuntu存储库中的版本。

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.

这篇关于Gradle测试失败,出现NullPointerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆