I am building a small JavaScript application in Adobe AIR, and I am looking for some general guidelines for automatically testing modules.
I would like to be able to run a set of unit tests from a shell (possibly from a Makefile or similar).
My initial thought was to use something lightweight like jsUnity to run test scripts from Rhino. I could provide a mock browser environment with env.js. But I need stubs for the AIR runtime that I could not find. (I suppose I could write them, but that would be tiring.)
Or is there support for this in AIR already, and I just missed it?
Any general tips and tricks on how to get started will be appreciated.
source share