From 0615960121ae5c2bcffe37e4ba938bbc3ef783cc Mon Sep 17 00:00:00 2001 From: Benjamin Boudreau Date: Tue, 29 May 2018 22:11:02 -0400 Subject: [PATCH 1/2] adding test coverage --- .circleci/config.yml | 5 ++++- .gitignore | 1 + package.json | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8d17f24..dcc89c9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,9 @@ jobs: - run: name: dep install command: npm install + - run: + name: install codecov + command: npm install -g codecov - run: name: test - command: npm test + command: npm test && codecov diff --git a/.gitignore b/.gitignore index 3c3629e..ba2a97b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +coverage diff --git a/package.json b/package.json index bbfa611..7bf78e2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ ] }, "jest": { + "coverageDirectory": "./coverage/", + "collectCoverage": true, "transform": { "^.+\\.(js|jsx|mjs)$": "/node_modules/babel-jest", "^.+\\.(css|scss)$": "/jest/cssTransform.js", From 6874ccd46ef2b80b41e026da1d9fd2e1333fcbec Mon Sep 17 00:00:00 2001 From: Benjamin Boudreau Date: Tue, 29 May 2018 22:14:07 -0400 Subject: [PATCH 2/2] adding badges --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 00e6cdf..d95a7fd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Embeddable React Widget +[![CircleCI](https://circleci.com/gh/seriousben/embeddable-react-widget.svg?style=svg)](https://circleci.com/gh/seriousben/embeddable-react-widget) +[![codecov](https://codecov.io/gh/seriousben/embeddable-react-widget/branch/master/graph/badge.svg)](https://codecov.io/gh/seriousben/embeddable-react-widget) + Easy creation of an embeddable widget. ## Goal