Mocha comes with a built-in JSON reporter. The JSON output lists all the missing test cases. for example
mocha -R JSON > test-report.json
Here is the test file. report.json should have the following structure.
{
stats: {...},
tests: [...],
pending: [...],
failures: [...],
passes: [...]
}
The pending key should have all the missing test cases.
source
share