My favorites | Sign in
Project Logo
                
Code license: New BSD License
Labels: AppEngine, GAE, Python, UnitTest
Show all Featured wiki pages:
Readme
Feeds:

GAEUnit 2.0 alpha for Django is released, please download and follow the instruction.

GAEUnit is a unit test framework that helps to automate testing of your Google App Engine application. With a single configuration change (it can be completed within 30 seconds), your unit tests can be run in the real GAE app server environment using a web browser.

GAEUnit is simple. It contains only one file: gaeunit.py. Just copy that file into your application directory and add the test URL to app.yaml.

Usage

1. Configure the environment:

- url: /test.*
  script: gaeunit.py

2. Write your test case scripts in Python modules, each containing unittest.TestCase subclasses, in the 'test' directory and launch dev_appserver.py

3. Browse to the following URL (change the port if necessary):

http://localhost:8080/test

Your test results will be displayed in the browser:

If you wish to run a single module, execute it like this:

http://localhost:8080/test?name=my_test_module

You can also specify a single test class, like name=my_test_module.MyTestCase or even a single test method, like name=my_test_module.MyTestCase.test_stuff

See FeatureCandidates for a list of potential upcoming features.

Please let us know if you have interesting ideas or specific requirements for GAEUnit. Use the comments on the FeatureCandidates page, or use the Issues tab above.









Hosted by Google Code