This package has been deprecated

Author message:

Package no longer supported. Look at https://www.npmjs.com/package/danger-plugin-code-coverage instead

code-coverage-dangerjs-plugin

1.0.2 • Public • Published

Code Coverage Danger JS plugin

Description

This plugin analyzes your last pull request, and displays the code coverage on the new files and modified files you just wrote

Installation

You need to install Danger JS first:

yarn add -D danger

Then add this package

yarn add -D code-coverage-dangerjs-plugin

Usage

  • Create a dangerfile (dangerfile.js or dangerfile.ts at the root of your project folder)
  • Edit it with
import { sendCoverageMessage } from "code-coverage-dangerjs-plugin";
 
sendCoverageMessage();
  • Run locally to test if it works
yarn danger local

You should see some lines in your terminal

Example for Circle CI:

version: 2
jobs:
build:
  steps:
    run: ... YOUR OTHER STEPS ...
    run:
        name: Run Danger
        command: yarn danger ci
        environment:
          DANGER_GITHUB_API_TOKEN: YOUR_GITHUB_TOKEN
  • Push a new PR and run the CI on it.
  • Go see your pull request with a useful comment!
  • ⭐️Add a star on this repo if you like it ;)

Package Sidebar

Install

npm i code-coverage-dangerjs-plugin

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

11.9 kB

Total Files

30

Last publish

Collaborators

  • spoutnik97