簡體   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