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,
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
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
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
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
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
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
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
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
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);
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
11 matches
Mail list logo