1.0.2 • Published 5 years ago

jest-simple-summary v1.0.2

Weekly downloads
557
License
MIT
Repository
gitlab
Last release
5 years ago

Jest Simple Summary

A library for reporting simple Jest coverage for a project. This library is mainly used for CI/CD platforms that generally only support a single number for a coverage reporter. This reporter also works with Jest when color is enabled!

Installation

Install Simple Summary using npm:

npm install --save-dev jest-simple-summary

Basic Jest Usage

To get started using this package you will need to add this reporter to your list of Jest reporters. You will also need to add the clover reporter to the coverage reporters section.

{
  "coverageReporters": ["clover"],
  "reporters": ["default", "jest-simple-summary"]
}

Gitlab CI Setup

Navigate to Settings > CI/CD Settings > General pipelines and add the following regular expression into the Test coverage parsing section:

Total Coverage: (\d+\.\d+\%)

After saving your changes you should be able to get the proper coverage number in Gitlab CI for Jest!

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.0-alpha

6 years ago