Skip to content

Commit

Permalink
add coverage badge to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Easybuoy committed Aug 29, 2019
1 parent f2497a5 commit 4c52689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/Easybuoy/node-api-testing.svg?branch=master)](https://travis-ci.org/Easybuoy/node-api-testing)
[![Coverage Status](https://coveralls.io/repos/github/Easybuoy/node-api-testing/badge.svg?branch=master)](https://coveralls.io/github/Easybuoy/node-api-testing?branch=master)

# node-api-testing
This project was created for showing how to test a node api using Mocha and Chai.
Expand Down
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -5,7 +5,8 @@
"main": "app.js",
"scripts": {
"test": "mocha --exit || true",
"start": "node app"
"start": "node app",
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -24,6 +25,8 @@
"devDependencies": {
"chai": "^4.2.0",
"chai-http": "^4.3.0",
"mocha": "^6.2.0"
"coveralls": "^3.0.6",
"mocha": "^6.2.0",
"nyc": "^14.1.1"
}
}

0 comments on commit 4c52689

Please sign in to comment.