3 ms·
This is why I have always been scared of GAE. Seems like the only thing that works precisely like GAE is GAE :) True unit tests though ought be runnable outsid
by robohamburger 10y ago
This is why I have always been scared of GAE. Seems like the only thing that works precisely like GAE is GAE :)
True unit tests though ought be runnable outside GAE since your code should not be coupled with GAE if it is unit testable. You still need to test your code correctly integrates with google app engine.
I would take a look at tox and py.test for testing in python, these are what I use in my normal linux environment.
- nickbauman 10y agoGAE has some rough edges, to be sure. But once you know about them, the really hard stuff is dead easy to test. The official test stubs are awesome to work with. I live or die by them: they've never let me down. If it works with the stubs, it has always worked with the real thing.
- robohamburger 10y agoThat is good to hear! I will check out GAE next time.
- nickbauman 10y agoHere's a link to the python stubs: https://cloud.google.com/appengine/docs/python/tools/localunittesting https://cloud.google.com/appengine/docs/python/tools/localun... Here's the Java stubs: https://cloud.google.com/appengine/docs/java/tools/localunittesting https://cloud.google.com/appengine/docs/java/tools/localunit... I wrap the hell out of the java stuff on App Engine because Java is so pedantic. It ends up looking like this: https://github.com/nickbauman/cljgae-template/blob/master/resources/leiningen/new/cljgae_template/fixtures.clj https://github.com/nickbauman/cljgae-template/blob/master/re...