Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

bouzuya/beater-reporter

Repository files navigation

beater-reporter

beater reporter interface for TypeScript.

See: bouzuya/beater README.

Note:

  • beater-reporter@>=2.0 <3.0 ... beater@>=7.0 <8.0
  • beater-reporter@>=1.0 <2.0 ... beater@>=5.0 <7.0
  • beater-reporter@>=0.4 <1.0 ... beater@>=0.4 <5.0
  • beater-reporter@>=0.3 <0.4 ... beater@<0.4
  • beater-reporter@<0.3 is beater default reporter implementation (is not interface). bouzuya/beater-cli default reporter moved into bouzuya/beater-cli-reporter.

Installation

$ npm install --save-dev beater-reporter

Usage

// index.ts
import { runWithOptions } from 'beater';
import { TestReporter } from 'beater-reporter';

const reporter: TestReporter = () => {
  /* ... */
};

const test1 = test(/* ... */);
runWithOptions({ reporter: reporter() })([test1]).catch(() => process.exit(1));

Badges

NPM Travis CI

License

MIT

Author

bouzuya <m@bouzuya.net> (https://bouzuya.net/)