[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-22 Thread Jerry
Well, with your location = new File(war/WEB-INF/appengine-generated/ local_db.bin) test setup, running the test does update that local_db.bin. But it's the only data file modified today in the entire project directory. Ideas? On Nov 20, 9:20 am, Starman r...@arrova.ca wrote: In that case,

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-22 Thread Jerry
Wow. It turns out that this test will erase everything from the local dev server's datastore! Not calling the helper's tearDown() fixes that, but I hadn't checked in that change since the test still doesn't succeed in getting App Engine to update datastore-indexes-auto.xml. Now it no longer

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-20 Thread Starman
In that case, your ds files must be written somewhere else when you run unit tests. On Nov 19, 9:28 pm, Jerry jerry.morri...@gmail.com wrote: Thanks for the hypotheses! I do have    datastore-indexes autoGenerate=true in war/WEB-INF/datastore-indexes.xml. I tried not tearing down the

Re: [appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-19 Thread Cyrille Vincey
Check your war WEB-INF datastore-indexes.xml (NOT the war WEB-INF appengine-generated datastore-indexes-auto.xml) You might read: datastore-indexes autoGenerate=false Try to replace with : datastore-indexes autoGenerate=true On 19/11/10 01:39, Jerry jerry.morri...@gmail.com wrote: Great

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-19 Thread Jerry
Thanks for the hypotheses! I do have datastore-indexes autoGenerate=true in war/WEB-INF/datastore-indexes.xml. I tried not tearing down the helper. Still, the test doesn't touch either of the files WEB-INF/appengine-generated/datastore-indexes-auto.xml

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-18 Thread Jerry
Great tip but it's not working. Running the test updates the mod date of local_db.bin but not datastore-indexes-auto.xml. I'm also configuring a LocalUserServiceTestConfig for a logged in user, but that doesn't seem to affect it. Is another setup step needed? I'd like a unit test to trigger all

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-18 Thread Starman
Humm... I get a nice appengine-indexes-auto.xml after my runs. Ah yes, don t call tear down on the helper... I don t exactly remember but, this was clearing the local_db.bin file and maybe the indexes auto also. R. On Nov 18, 7:39 pm, Jerry jerry.morri...@gmail.com wrote: Great tip but it's

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-11 Thread gholler
Hi Didier, thanks for your reply. Those instructions are for generating an index file while running the dev server and hitting it locally with your browser. What I am talking about is during running JUnit test cases using the LocalServiceTestHelper. That helper lets you write unit tests against

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-11 Thread gholler
Hi Didier, thanks for your reply. Those instructions are for generating an index file while running the dev server and hitting it locally with your browser. What I am talking about is during running JUnit test cases using the LocalServiceTestHelper. That helper lets you write unit tests against

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-11 Thread Starman
Something like the following will setup the datastore helper and create the datastore-indexes-auto.xml: LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig(); File location = new File(war/WEB-INF/appengine-generated/ local_db.bin);

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-10 Thread Didier Durand
Hi George, Did you follow the instructions of http://code.google.com/appengine/docs/java/config/indexconfig.html#Using_Automatic_Index_Configuration ? That should be the answer to your question regards didier On Nov 10, 8:26 pm, gholler georgehol...@gmail.com wrote: Is it possible to