Skip to content

Node.js test runner report stream parser, also supporting cancelled tests

License

Notifications You must be signed in to change notification settings

heal-dev/node-test-parser

 
 

Repository files navigation

node-test-parser

CI

Installation

npm i -D node-test-parser

Usage

Create a custom test reporter using the parser:

// reporter.js
import parseReport from 'node-test-parser'

export default async function* jsonReporter(source) {
  const report = await parseReport(source)
  yield JSON.stringify(report, null, 2)
}

Run tests using the custom reporter:

node --test --test-reporter ./reporter.js

About

Node.js test runner report stream parser, also supporting cancelled tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.0%
  • Shell 13.8%
  • TypeScript 4.2%