How to Unit Test Google Java Virtual Endpoints with Android Studio 0.8

I found some posts, but they either relate to the testing interface, or python. There is one tutorial for java GCE, but there is no specificity in how to configure it in Android Studio, there are just a few random references to Eclipse.

eg

Unit tests in Android Studio 0.8

https://developers.google.com/appengine/docs/java/tools/localunittesting#Java_Writing_Datastore_and_memcache_tests

https://www.youtube.com/watch?v=z47B1nhC3K0

Feel free to yell at me if I missed some relevant post and sent me to her. Thank.


Rant: ignore. Can I say that I find it insane that in 2014, on its new Android Studio platform (IntelliJ), with all the lessons learned from previous iterations, Google did not provide a simple and understandable way to configure front- / back-end testing? I can’t decide which epithet to use here: miserable, terribly devoid of foresight or lazy? Yes, I know that the name is not productive, but I feel that I have the right to be outraged. I know that Google wants its developers to succeed, so why is it not completely and completely obvious that any IDE solution should include at least the basic workflow baked for testing. Get Google on it! Testing is not a thought. This CORE has some kind of non-trivial code in production. Fix it. We do not need,so that the community develops a patch how of random solutions that stop working every few months. Google is a software company, they know that. I love you, but in this case I am disgusted, and you know that we are all right. / Pompous

+4
1

gradle googling, , build.gradle backend-

testCompile 'com.google.appengine:appengine-api-labs:1.9.8'
testCompile 'com.google.appengine:appengine-api-stubs:1.9.8'
testCompile 'com.google.appengine:appengine-testing:1.9.8'
testCompile 'junit:junit:4.12+'

( ) https://developers.google.com/appengine/docs/java/tools/localunittesting#Java_Writing_Datastore_and_memcache_tests

, - .

+2

All Articles