Mocha reporter that generates API spec description for README
mocha test --reporter @twada/mocha-spec-tree-reporter
- when rendering top level tests:
- renders bullet list marker
-
at the beginning of a line, followed by test title
- renders bullet list marker
- when top level suites enclose tests:
- renders headings
###
at the beginning of a line, followed by top level suite title - renders bullet list marker with indentation
-
at the beginning of a line, followed by inner test title
- renders headings
- when top level outer suites enclose inner suites, and inner suites enclose innermost tests:
- renders headings
###
at the beginning of a line, followed by top level outer suite title - renders bullet list marker with indentation
-
at the beginning of a line, followed by inner suite title - renders bullet list marker with double indentation
-
at the beginning of a line, followed by innermost test title
- renders headings
- when multiple top level suites exist:
- insert blank line after each top level suite
See self-hosting tests and its output.
$ npm install @twada/mocha-spec-tree-reporter
Licensed under the MIT license.