There should be a easy way to write tests that get automatically put into a extension or app for execution inside of chrome.