Assuming you're using LocalServiceTestHelper and 
LocalDatastoreServiceTestConfig, I would suggest tweaking noIndexAutoGen:

new LocalServiceTestHelper(new 
LocalDatastoreServiceTestConfig.setNoIndexAutoGen(true))

On Tuesday, August 16, 2016 at 3:14:43 AM UTC-4, Rajesh Gupta wrote:
>
> Hi,
>
> I am running the junit tests.  Is there a way to specify the 
> datastore-indexes.xml file for the junit tests
>
> What I meant, when the running the junit, the code should throw 
> DatastoreIndexNotFoundException if there is no index in the 
> datastore-indexes.xml.
>
> What is happening for us is, we run the tests and the tests are green.  
> But when the same code gets executed in the server, it throws 
> DatastoreIndexNotFoundException 
>
> -- 
> Regards,
> Rajesh
> *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
> *www.GainERP.com <https://www.gainerp.com>*
> *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a573bbcc-ab94-46ec-9a10-203cf87a87fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to