GoogleCloudPlatform / gradle-appengine-plugin

Gradle plugin that provides tasks for uploading, running and managing Google App Engine projects
Apache License 2.0
236 stars 60 forks source link

Question: Access DataStore in appengineFunctionalTest #255

Open ndtreviv opened 8 years ago

ndtreviv commented 8 years ago

Currently, you cannot access the datastore that the appengineFunctionalTests use.

This means that you cannot select a vertical slice of your process and test just that part. It also makes it harder to setup some test scenarios (eg: consider a test requiring an active user, but user activation involves a confirmation email and 2-factor authentication).

Also, the datastore is not cleared after every @Test.

I'd like to be able to use the LocalDatastoreServiceTestConfig to setup and clear down data. How can I do this?