()
| 21 | path = require('path'); |
| 22 | |
| 23 | function main() { |
| 24 | if (process.argv.length === 2) { |
| 25 | throw new Error('File name required as first arg.'); |
| 26 | } |
| 27 | |
| 28 | var fileName = process.argv[2], |
| 29 | fullPath = path.join(__dirname, fileName), |
| 30 | results = require(fullPath)[0].results, |
| 31 | tests = new Set(); |
| 32 | for (let result of results) { |
| 33 | let [_, ...test] = result.name.split('/'); |
| 34 | tests.add(` '${test.join('/')}': [FAIL],`); |
| 35 | } |
| 36 | |
| 37 | |
| 38 | [...tests].sort().forEach(i => console.log(i)); |
| 39 | } |
| 40 | |
| 41 | main(); |