Skip to content

Files

Latest commit

 

History

History

github

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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