Created
September 15, 2019 07:42
-
-
Save foolip/eb0c9b178b862c761466fd4610019922 to your computer and use it in GitHub Desktop.
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
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