Coder Social home page Coder Social logo

mako-taco / travis-cov Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alex-seville/travis-cov

0.0 3.0 0.0 121 KB

A mocha/blanket reporter for travis, will fail build when coverage is below a certain threshold

License: MIT License

JavaScript 100.00%

travis-cov's Introduction

This fork exists only to have an up-to-date version of Travis-Cov on NPM!

travis-cov

A coverage reporter for Mocha/Blanket that will fail a travis-ci build when the coverage threshold is too low.

Threshold is specified in the package.json file of the consuming project.

Add the key `"travis-cov" to the "config" key in your package.json file. Under that key you can add any of the following properties:

threshold: <number>, global: <boolean>, local: <boolean>

See Blanket.js's package.json as an example.

###usage

  1. npm install travis-cov
  2. Use a reporter argument, mocha -R travis-cov
  3. Change scripts.test in your package.json file to use mocha -R travis-cov
  4. Add travis-cov to the package.json file in the config section. Add whichever keys you want (see above).
  5. Set up your project with travis-ci
  6. Commit, if your tests pass and the code coverage is above the threshold the build will pass, otherwise it will fail.

travis-cov's People

Contributors

alex-seville avatar

Watchers

James Cloos avatar Jake Scott avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.