@reporters/github
v1.7.0
Published
A github actions reporter for `node:test`
Downloads
26,311
Maintainers
Readme
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
additionally, Annotations and summary will be added to the summary of the test run.