From a7f9c5caf201857993eb1aa5810c2a496a5273cb Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Wed, 6 Mar 2019 14:05:15 +0900 Subject: [PATCH] Added coverage testing at CI process --- .coveralls.yml | 1 + README.md | 16 +++++++++------- package.json | 4 ++-- 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..f17df72 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: $REPO_TOKEN diff --git a/README.md b/README.md index 3fa0f7c..e9ed2c2 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,27 @@ # 📣 Kuglo +[![Coverage Status](https://coveralls.io/repos/github/kurone-kito/kuglo/badge.svg?branch=master)](https://coveralls.io/github/kurone-kito/kuglo?branch=master) + Practice for desktop app using [Electron](https://github.com/electron/electron) -# Debugging & Testing +## Debugging & Testing -## Prepare +### Prepare Requirement: nodejs >= 8.10 ```sh -$ npm i; npm run build +npm install ``` -## Debugging +### Debugging ```sh -$ npm start +npm start ``` -## Testing +### Testing ```sh -$ npm test +npm test ``` diff --git a/package.json b/package.json index 113e89e..9de63f6 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,10 @@ "scripts": { "install": "npm run build", "start": "electron ./", - "test": "eslint src/**/* && jest --coverage", + "test": "jest --coverage --coverageReporters=text-lcov | coveralls", "build": "webpack", "pack": "electron-builder --x64", - "prettier": "prettier -c --write ./**/*" + "test:unit": "jest --coverage" }, "engines": { "node": ">=8.10"