Skip to content

Instantly share code, notes, and snippets.

@foolip
Created September 15, 2019 07:42
Show Gist options
  • Save foolip/eb0c9b178b862c761466fd4610019922 to your computer and use it in GitHub Desktop.
Save foolip/eb0c9b178b862c761466fd4610019922 to your computer and use it in GitHub Desktop.
const fs = require('fs');
const args = process.argv.slice(2)
const singleSubtestTests = new Set();
for (const reportPath of args) {
const report = JSON.parse(fs.readFileSync(reportPath));
for (const result of report.results) {
if (result.subtests && result.subtests.length === 1) {
singleSubtestTests.add(result.test);
}
}
}
console.log(singleSubtestTests.size);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment