Skip to content

Instantly share code, notes, and snippets.

@bichotll
Created June 2, 2016 09:52
Show Gist options
  • Save bichotll/9477b49eb5afe9f032edda234c4cdc83 to your computer and use it in GitHub Desktop.
Save bichotll/9477b49eb5afe9f032edda234c4cdc83 to your computer and use it in GitHub Desktop.
/**
* Returns the tests to be run
*/
function getFailedTests() {
var cases = [];
$('h3:not(.hidden)').each(function(){
cases.push($(this).text().match(/[0-9]*\.[0-9]*/)[0]);
})
return "...test -c " + (cases.join(' -c '));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment