in reply to How do you test end-user scripts?

You may not want to go to this much work, but I've had good experiences extracting modules from scripts and testing those modules directly.