-
-
Save tanepiper/896239 to your computer and use it in GitHub Desktop.
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
loadSpecs = (paths...) -> | |
# expand all spec paths to full cache busted file paths | |
paths = for path in paths | |
"spec/#{path}_spec.js?#{new Date().getTime()}" | |
# Load the specs with head.js, and start a spec run 1 second after they load. | |
head.js paths..., -> | |
setTimeout -> | |
jasmine.getEnv().addReporter(new jasmine.TrivialReporter()) | |
jasmine.getEnv().execute() | |
, 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment