2017-10-26 1 views
0

내 프로젝트는 gradle로 제작되었습니다.IntelliJ 사용시 내 Google App Engine 클래스가 향상되지 않는 이유는 무엇입니까?

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

을하지만 인텔리 내에서 테스트를 실행하려고 할 때 내 수업이 을 강화하지 않기 때문에 그것은 실행되지 : 나는 명령 줄 모두에서 검사를 실행할 경우 작동합니다.

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 작업을 실행해도 차이가 없습니다.

답변

4

기본적으로 IntelliJ는 테스트를 실행하기 위해 플랫폼 러너를 사용합니다. 대신 gradley runner를 선택해야합니다.

preferences > build[...] > build tools > gradle > runner 및 Gradle을 위해 위임 IDE 빌드/실행 작업을 선택

enter image description here