Skip to content

Instantly share code, notes, and snippets.

@nicksteffens
Created March 6, 2020 21:46
Show Gist options
  • Save nicksteffens/c19f1712278343e4acb21a2b763d2060 to your computer and use it in GitHub Desktop.
Save nicksteffens/c19f1712278343e4acb21a2b763d2060 to your computer and use it in GitHub Desktop.
let failingTests = [];
const testElements = document.querySelectorAll('li[id].fail');
testElements.forEach(test => {
const moduleName = test.getElementsByClassName('module-name')[0].textContent
const testName = test.getElementsByClassName('test-name')[0].textContent
failingTests.push(`- [ ] ${moduleName} ${testName}`)
});
console.log(failingTests.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment