Created
January 4, 2018 17:39
-
-
Save juliandescottes/b6ad6a525e965a745cceb0b1e5ddba3e to your computer and use it in GitHub Desktop.
Small script to get the list of tests that were executed in a try run
This file contains hidden or 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
async function getTestList(logUrl) { | |
let log = await fetch(logUrl); | |
let logText = await log.text(); | |
let lines = logText.split("\n"); | |
lines = lines | |
.filter(l => l.includes("TEST-START")) | |
.filter(l => !l.includes("Shutdown")) | |
.map(l => l.match(/TEST-START \| ([^\s]+)/)[1]); | |
console.log(lines); | |
} | |
getTestList("https://public-artifacts.taskcluster.net/X5kX9lNMTb27GBSLWg6X9Q/0/public/logs/live_backing.log"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment