testing

17 Nov 2009

Check out the Ad Hoc Packager script I released that is far better than the old bash script.

When deploying beta builds of your iPhone apps, you make what is known is an Ad Hoc distribution. Apple's instructions tell you that you should zip up the Ad Hoc distribution and send it to your testers along with your .mobileprovision file. As John Hartzog discovered, however, using the Compress option in Finder for Ad Hoc distribution has drawbacks so you should use the command line to package up your Ad Hoc distributions.

(more...)

A little Bash script for speeding up Ad Hoc iPhone distribution builds

31 Aug 2008

Backing up and restoring the datastore in your local SDK can be very useful for several use cases. Personally, I find that I alternate between running the local SDK with a restore of data from the deployment environment and with an empty or test datastore.

The local SDK slows down painfully when you populate it with real amounts of data so sometimes I test with an empty datastore while developing. Restoring data, however, takes a long time too so I don't want to run my restore process all the time. And I don't have to, since I can simply backup the local datastore and restore is by copying it back.

(more...)

Backing up and restoring your local SDK datastore (Google App Engine)

13 Jun 2008

Developer emptor: I just lost a couple of hours to this: make sure you disable the Google App Engine doctest import in your apps when you're done testing a module lest you encounter _weird_ errors. I started having the login URL returned by users.create_login_url() being returned incorrectly when I forgot to remove the doctest import. It started forwarding to https://www.google.com/accounts/Login?continue=. Check out my forum post on it here.

I love Python's doctests. Basically, you test out your functions in the interactive shell and copy the results into the comments for a function. That's it! So simple.

(more...)

Running doctests from TextMate for Google App Engine modules

5 Jun 2008

I've had a hard time trying to get Internet Explorer on Windows (under Parallels) to connect to the Google App Engine local development server running on OS X.

The interesting thing was that IE would connect to the built-in web server on the Mac without problem (using the Shared Network setting, I could also connect to any other web site.) But I couldn't connect to the development server either via IP or via the computer name using Bonjour for Windows.

(more...)

Testing Google App Engine apps in Internet Explorer on Windows with Parallels on OS X

12 Apr 2008

The Google App Engine Mail API lets you easily send email from your applications. However, I found it difficult to test it locally when using the Development Web Server.

The documentation states that you can either use an existing SMTP provider or sendmail with the local server but the former solution didn't work for me with GMail or the SMTP server at my web host. And, from a quick Google search for sendmail, I got the impression that I should stay away from it.

In the end, I opted to use a simple Python-based SMTP server by Les Smithson to debug my mail calls locally.

It's very simple to use:
(more...)

Testing mail locally with the Google App Engine Development Web Server