mocha-spec-reporter-with-file-names

v0.0.0
Mocha default spec reporter with file names.
mocha file name spec file name reporter

mocha-spec-reporter-with-file-names

Modified version of the Mocha default built-in spec reporter but with file names included in the output.

Here's what the output looks like:

example output image

Usage

Config

// .mocharc.js

const SpecReporterWithFileNames = require('mocha-spec-reporter-with-file-names');

module.exports = {
    reporter: SpecReporterWithFileNames.pathToThisReporter,
};

Mocha config file docs.

CLI

npx mocha --reporter './node_modules/mocha-spec-reporter-with-file-names'

Mocha --reporter docs.

Metadata

  • MIT
  • Whatever
  • electrovir
  • released 10/9/2022

Downloads

Maintainers