@reporters/github

1.7.0 • Public • Published

npm version tests codecov

Github Actions Reporter

A Github actions reporter for node:test

Installation

npm install --save-dev @reporters/github

or

yarn add --dev @reporters/github

Usage

# .github/workflows/test.yml
- name: Run tests
  run: node --test \
    --test-reporter=@reporters/github --test-reporter-destination=stdout \
    --test-reporter=spec --test-reporter-destination=stdout

Result

when test failed, annotations will be added inside the github UI, with corresponding errors and diagnostics. see example run:

Inline annotations

Inline Annotation

additionally, Annotations and summary will be added to the summary of the test run.

Annotations

Annotation

Summary

Summary

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @reporters/github

    Weekly Downloads

    2,395

    Version

    1.7.0

    License

    MIT

    Unpacked Size

    6.24 kB

    Total Files

    3

    Last publish

    Collaborators

    • molow