Reputation: 25400
My project is built with gradle. If I run the test from the command line everything works:
./gradlew test --tests '*.UserTest'
But when I try to run the tests from within Intelli it fails to run because my classes aren't enhanced.
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.
Running the task appengineEnhance
makes no difference.
Upvotes: 0
Views: 145
Reputation: 25400
It turns out that by default, IntelliJ will use the platform runner for running the tests. You need to select the gradle runner instead.
preferences > build[...] > build tools > gradle > runner
and select Delegate IDE build/run actions to gradle
Upvotes: 5