繁体   English   中英

为什么在使用IntelliJ时我的Google App Engine类没有得到增强?

[英]Why are my Google App Engine classes not enhanced when using IntelliJ?

我的项目是用gradle构建的。 如果我从命令行运行测试,则一切正常:

./gradlew test --tests '*.UserTest'

但是,当我尝试从Intelli中运行测试时,由于我的类未得到增强,它无法运行。

javax.jdo.JDOUserException: Persistent class "Class com.example.Foo does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class.

运行appengineEnhance任务没有任何区别。

事实证明,默认情况下,IntelliJ将使用平台运行程序来运行测试。 您需要选择gradle赛跑者。

preferences > build[...] > build tools > gradle > runner 运行器,然后选择Delegate IDE构建/运行操作以进行gradle

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM