@blockquote/test-runner-mocha-style-reporter

1.5.1 • Public • Published

Mocha-style reporter for Test Runner API

Install package

npm install @blockquote/test-runner-mocha-style-reporter --save-dev

web-test-runner.config.mjs

import { defaultReporter } from '@web/test-runner';
import { mochaStyleReporter } from '@blockquote/test-runner-mocha-style-reporter';

...
  reporters: [
      defaultReporter(),
      mochaStyleReporter(),
  ],
...

Reporters: Overview

By default, the reporter will report both test results and test coverage. You can disable these reports by passing options to the mochaStyleReporter() function:

import { defaultReporter } from '@web/test-runner';
import { mochaStyleReporter } from '@blockquote/test-runner-mocha-style-reporter';

...
  reporters: [
      defaultReporter(),
      mochaStyleReporter({ reportResults: true, reportCoverage: true }),
  ],
...

Reporter for web test runner

See moder-web website for full documentation.

reporter example

Package Sidebar

Install

npm i @blockquote/test-runner-mocha-style-reporter

Weekly Downloads

14

Version

1.5.1

License

MIT

Unpacked Size

7.22 kB

Total Files

5

Last publish

Collaborators

  • oscarmarina