Skip to content

Instantly share code, notes, and snippets.

@fixlr
Last active August 20, 2020 13:39
Show Gist options
  • Save fixlr/b69d119e0a86a94ee4f7fc64efd3e3c9 to your computer and use it in GitHub Desktop.
Save fixlr/b69d119e0a86a94ee4f7fc64efd3e3c9 to your computer and use it in GitHub Desktop.
Copy failed test files from CircleCI

Bookmarklet - CircleCI failures

Copy the full list of failures from a CircleCI build with one click!

To Install

Create a new bookmark in your browser, and use the minified cci_failures.min.js code as the bookmark's URL.

To Use

Click the bookmark!

(function() {
var f = Array.from(new Set([].slice.call(document.getElementsByClassName('css-egzlg0')).map(e => e.innerHTML))).join(' ');
var t = document.createElement("textarea");
t.textContent = f;
var s = document.getSelection();
s.removeAllRanges();
// Add the text area containing the list of files to the body so that we
// can select and copy the text.
document.body.appendChild(t);
t.select();
document.execCommand('copy');
s.removeAllRanges();
document.body.removeChild(t);
})();
javascript: (function() {var f = Array.from(new Set([].slice.call(document.getElementsByClassName('css-egzlg0')).map(e => e.innerHTML))).join(' ');var t = document.createElement("textarea");var s = document.getSelection();t.textContent = f;document.body.appendChild(t);s.removeAllRanges();t.select();document.execCommand('copy');s.removeAllRanges();document.body.removeChild(t);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment