I usually disable index auto generation when launching dev_appserver.py. This helps me keep dry with indexes that I really need during development.
The documented behavior is that when you launch devserver it can generate indexes for you. If you have an empty index.yaml without the comments that are generated, it will not manage indexes for you. I like to have all of them explicitly appear in my files.
--require_indexes=yes|no
Disables automatic generation of entries in the index.yaml file. Instead, when the application makes a query that requires that its index be defined in the file and the index definition is not found, an exception will be raised, similar to what would happen when running on App Engine. The default value isno.
As explained here: https://cloud.google.com/appengine/docs/python/tools/local-devserver-command
The local unit tests are another think. They assume you are running a temporary webserver instance to allow you to write headless unit tests with your code against the API calls, not against a particular app config. There is the value I used this tool for in the past four years.
Best,
If the tests pass locally but fail in production the local datastore emulation is really close to useless. If someone decides to fix this it would be great to have the indexes injectable in the context (though the aetest package) so that we can test the packages individually(i.e. not in a monolithic application).
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.