An open API service indexing awesome lists of open source software.

https://github.com/sjinks/node-reporter-gha

A GitHub Actions test reporter for the Node.js Test Runner
https://github.com/sjinks/node-reporter-gha

gha github-actions node-test-reporter test-reporter test-reporting

Last synced: 2 months ago
JSON representation

A GitHub Actions test reporter for the Node.js Test Runner

Awesome Lists containing this project

README

        

# node-reporter-gha

[![Build and Test](https://github.com/sjinks/mocha-reporter-gha/actions/workflows/build.yml/badge.svg)](https://github.com/sjinks/mocha-reporter-gha/actions/workflows/build.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sjinks_node-reporter-gha&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=sjinks_node-reporter-gha)

A GitHub Actions test reporter for the Node.js [Test Runner](https://nodejs.org/api/test.html).

## Installation

```bash
npm i -D node-reporter-gha
```

## Usage

```bash
node --test --test-reporter=node-reporter-gha
```

Multiple reporters:

```bash
node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=node-reporter-gha --test-reporter-destination=stdout
```

See [Test reporters](https://nodejs.org/api/test.html#test-reporters) for details.

## Sample Output

### Inline Annotations

![Inline Annotations](https://github.com/sjinks/node-reporter-gha/assets/7810770/061c55fd-dcce-4d04-8354-c360f484b0fe)

### Summary

![Test Summary](https://github.com/sjinks/node-reporter-gha/assets/7810770/88e6a3b2-c65b-41dc-af23-78800f8e00a3)