Created
August 20, 2012 23:52
-
-
Save maffoo/3409392 to your computer and use it in GitHub Desktop.
Javascript Test Runner for JSTD + Sauce Connect + PhantomJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with contextlib.nested(jstd, sauce): | |
with contextlib.nested(*browsers) as browsers: | |
print "capturing browsers..." | |
for browser in browsers: | |
if hasattr(browser, 'get'): | |
print "capturing browser {0}...".format(browser) | |
browser.get(jstd.capture_url) | |
print "running tests from {config}...".format(config=o.jstd_config) | |
jstd.run_tests(o.jstd_config, o.jstd_tests, o.jstd_output) | |
print "done with tests." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment