From c95faba670738b40833f7a2201bc837f8093cafb Mon Sep 17 00:00:00 2001 From: sharpshark28 Date: Thu, 22 Feb 2018 18:44:27 -0600 Subject: [PATCH] Coverage --- README.md | 2 +- package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7050b5a..d90fef1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # json-query-chain -[![Build Status](https://travis-ci.org/sharpshark28/json-query-chain.svg?branch=master)](https://travis-ci.org/sharpshark28/json-query-chain) [![npm version](https://badge.fury.io/js/json-query-chain.svg)](https://badge.fury.io/js/json-query-chain) [![Code Climate](https://img.shields.io/codeclimate/github/sharpshark28/json-query-chain.svg)](https://codeclimate.com/github/sharpshark28/json-query-chain) +[![Build Status](https://travis-ci.org/sharpshark28/json-query-chain.svg?branch=master)](https://travis-ci.org/sharpshark28/json-query-chain) [![npm version](https://badge.fury.io/js/json-query-chain.svg)](https://badge.fury.io/js/json-query-chain) [![Code Climate](https://img.shields.io/codeclimate/github/sharpshark28/json-query-chain.svg)](https://codeclimate.com/github/sharpshark28/json-query-chain) ![Code Coverage](coverage.svg) Chain queries onto POJOs to return precise results. diff --git a/package.json b/package.json index f76bcf7..6c9cd29 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Chain queries onto POJOs to return precise results.", "main": "index.js", "scripts": { - "test": "jest --coverage" + "test": "jest --coverage && npm run badge", + "badge": "lcov-badge coverage/lcov.info -o coverage.svg" }, "repository": { "type": "git", @@ -17,6 +18,7 @@ }, "homepage": "https://github.com/sharpshark28/json-query-chain#readme", "devDependencies": { - "jest": "^20.0.4" + "jest": "^20.0.4", + "lcov-badge": "^1.0.4" } }