Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Created December 12, 2012 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronj1335/4268450 to your computer and use it in GitHub Desktop.
Save aaronj1335/4268450 to your computer and use it in GitHub Desktop.
run a bunch of front-end unit tests with csi
#!/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