Socket
Book a DemoInstallSign in
Socket

ember-cli-doorkeeper

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-doorkeeper

Fail CI on pull requests in Ember apps and addons if code coverage drops by a specified threshold

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
7
-85.11%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

ember-cli-doorkeeper

This addon will fail CI on pull requests in Ember apps and addons if code coverage drops by a specified threshold when using ember-cli-code-coverage.

Installation and Configuration

  • ember install ember-cli-doorkeeper
  • Set your npm test command to ember doorkeeper
  • Add your test command to testCommand in .doorkeeperrc.js. The default is COVERAGE=true ember test. For addons, use COVERAGE=true ember try:each.
  • Add !/coverage/coverage-summary.json to .gitignore
  • Run your test suite locally to generate coverage/coverage-summary.json and commit it to your repo.

How It Works

The ember-cli-code-coverage addon generates code coverage results in coverage/coverage-summary.json. This addon works by generating code coverage for a PR and comparing the results against the code coverage results on the master branch (you can configure which branch to compare against in .doorkeeperrc.js via the mainBranch option).

When adding this to your project for the first time, coverage/coverage-summary.json may not be under version control. If this file isn't present in mainBranch, your tests will run as normal and code coverage comparison won't run.

In order to keep coverage/coverage-summary.json up to date in mainBranch, each PR should contain a new coverage/coverage-summary.json. CI will still generate a new one on PRs and use that to compare against the one in mainBranch, but it won't commit it back to the PR. If someone knows how to do this with various CI systems, please reach out and we can update this README with examples.

Keywords

ember-addon

FAQs

Package last updated on 20 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.