Created
December 12, 2012 15:02
-
-
Save aaronj1335/4268450 to your computer and use it in GitHub Desktop.
run a bunch of front-end unit tests with csi
This file contains 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
#!/usr/bin/env python | |
import webbrowser,subprocess | |
tests = subprocess.check_output('node_modules/.bin/csi test --listtests'.split()) | |
# on windows | |
# tests = subprocess.check_output('node node_modules/csi/bin/proxy.js test --listtests'.split()'.split()) | |
for test in tests.split('\n'): | |
webbrowser.open_new_tab(test) | |
print test | |
raw_input() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment