Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7038795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:42:44+00:00 2026-05-28T01:42:44+00:00

I am creating a app on Google app engine and am wondering if there

  • 0

I am creating a app on Google app engine and am wondering if there are ways to do automated testing with python.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:42:44+00:00Added an answer on May 28, 2026 at 1:42 am

    We are generally not testing too much. We once had a “80% test coverage” rule but found this doesn’t make us better or faster. Most code and data structures we use are designed quite defensively so there is seldom harm which can’t be undone. Our users prefer fast turnaround times to 100% uptime.

    We have two apps setup: my app.appspot.com and my app-test.appspot.com. The whole codebase is designer to ensure app-test.appspot.com never changes state in external systems.

    occasionally we copy the data from app.appspot.com to app-test.appspot.com. It can get messy, because id generation counters for the datastore don’t get updated but it works good enough.

    We develop on both systems. Frontend development is done mostly on app.appspot.com and experiments with the backend are done on app-test.appspot.com.

    We have three branches: master, rc and production.rc gets updated from master and production from rc. rc is deployed daily to rc.app.appspot.com by or operations them. production is deployed weekly to production.app.appspot.com (which is also reachable via an other app name.

    Developers usually deply to dev-whoami.app.appspot.com for experimenting. We use the development server very little because wee need a lot of data from the datastore.

    Now to testing: we mostly use acceptance tests. We have a little framework called resttest_dsl which we use to describe tests like this:

    client.GET('/').responds_access_denied()
    client.GET('/', auth='user').responds_html()
    client.GET('/admin').responds_access_denied()
    client.GET('/admin', auth='user').responds_access_denied()
    client.GET('/admin', auth='admin').responds_html()
    client.GET('/artikel/').responds_with_html_to_valid_auth()
    client.GET('/artikel/?q=Ratzfratz', auth='user').responds_html()
    client.GET('/api/ic/v3/a/14600/03/zukunft.json').responds_with_json_to_valid_auth()
    client.GET('/kunden/SC50313/o/SO1194829/', auth='user').responds_html()
    client.GET('/api/masterdata/artikel/v2/artnr/14600/bild=s210').redirects_to('...')
    

    hostname and credentials have defaults but can be overwritten by environment variables. Most errors we ever have fixed have a regression test in there. We use Makefiles to drive the whole stuff. Eg.g:

    deploy:
    appcfg.py update -V dev-`whoami` -A app .
    TESTHOST=dev-`whoami`.app.appspot.com make resttest
    open http://dev-`whoami`.app.appspot.com/
    

    Deployment always happens from the central git repository like this:

    deploy_production:
    rm -Rf tmp
    mkdir tmp
    (cd tmp ; git clone git@github.com:user/app.git)
    (cd tmp/app ; git checkout production ; make dependencies)
    (cd tmp/app ; git show-ref --hash=7 refs/remotes/origin/production > version.txt)
    appcfg.py update -V "v`cat tmp/app/version.txt`" -A app tmp/app
    (cd tmp/huWaWi ; TESTHOST="v`cat version.txt`".app.appspot.com make resttest)
    appcfg.py update -V production -A app tmp/app
    appcfg.py backends -V production -A app tmp/huWaWi app
    

    We first deploy to a version tagged with the current revision on AppEngine. We then run resttest.py against this freshly deployed version. On failure the mmake stops execution. If no failure occurred the “production version” is deployed.

    We also run mandantory pep8, pyflakes and pylint checks on source code checkin.

    All in all we have very simple minded tests but run them a lot and against production code and data. For us this catches most of error we make which relatively little effort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there more comprehensive sample of creating Google App Engine App using GData Python
I'm creating a python app for google app engine and I've got a performance
I am creating a Google App Engine web application written in Python, and I
I'm creating a small app using python 2.7 with google app engine and I'm
I'm creating a GWT app in Google App Engine, and using Google data store.
I'm creating a Go Google App Engine application that will be making HTTP JSON
I need to know for creating a Pydev Google App Engine Project in Eclipse.
As a new python and django developer, I'm creating a Django app on Google
I'm testing a Google App Engine application where I've started using task queues to
Is there a way I can make class decorators work on Google App Engine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.