Skip to content

Instantly share code, notes, and snippets.

@tj
Created August 21, 2009 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tj/172441 to your computer and use it in GitHub Desktop.
Save tj/172441 to your computer and use it in GitHub Desktop.
;(function(){
JSpec.include({
name: 'JUnit',
formatters : {
JUnitXML : function(results, options){
each(results.allSuites, function(suite){
...
})
}
}
})
})
...
function runSuites() {
JSpec
.exec('spec.js')
.run({ formatter : JSpec.formatters.JUnitXML })
.report()
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment