Created
July 14, 2010 22:42
-
-
Save superchris/476209 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
<script> | |
function runSuites() { | |
// uncomment when we move away from the grammar | |
//JSpec.preprocess = function(code) { return code; } | |
var matches = /.*\?test=(.*)/.exec(document.URL); | |
if (matches) | |
{ | |
JSpec | |
.exec(matches[1]) | |
.run({ failuresOnly: false, fixturePath: 'fixtures' }) | |
.report(); | |
} else { | |
// run the whole suite | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment