Testing
At the time of writing there is no Salesforce provided test framework for Lightning components as there is for Apex. Salesforce has not officially commented, but it is likely that they will include the Aura test framework that exists today in the open source project in a future release of the Force.com platform (http://documentation.auraframework.org/test/runner.app).
Meanwhile I recommend you review existing browser testing tools.