包详细信息

mocha-spec-reporter-with-file-names

electrovir1.3kMIT0.0.3

Mocha default spec reporter with file names.

mocha, file name, spec, file

自述文件

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.