Skip to content

Commit

Permalink
chore(coverage): integrate coveralls
Browse files Browse the repository at this point in the history
- To report coverage for test
[Delivers #163478791]
  • Loading branch information
Ibidapo Rasheed authored and ifiokeyo committed Feb 4, 2019
1 parent 3dadf0f commit 6e4530a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ node_modules

# Coveralls and Coverage folder
.coveralls.yml
.nyc_output
.nyc_output
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ language: node_js
node_js:
- "11.6.0"

after_success:
- nyc report --reporter=text-lcov | coveralls
after_success: npm run coverage
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Authors Haven - A Social platform for the creative at heart.

[![Coverage Status](https://coveralls.io/repos/github/andela/denethor-ah-backend/badge.svg?branch=master)](https://coveralls.io/github/andela/denethor-ah-backend?branch=master)

[![Build Status](https://travis-ci.org/andela/denethor-ah-backend.svg?branch=master)](https://travis-ci.org/andela/denethor-ah-backend) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
[![Build Status](https://travis-ci.org/andela/denethor-ah-backend.svg?branch=master)](https://travis-ci.org/andela/denethor-ah-backend) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) [![Coverage Status](https://coveralls.io/repos/github/andela/denethor-ah-backend/badge.svg?branch=master)](https://coveralls.io/github/andela/denethor-ah-backend?branch=master)

## Vision

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "A Social platform for the creative at heart",
"main": "index.js",
"scripts": {
"test": "PORT=3001 mocha --require @babel/register tests/**/*.js --exit",
"test": "PORT=3001 nyc mocha --require @babel/register tests/**/*.js --exit",
"lint": "eslint",
"start:dev": "NODE_ENV=development nodemon --exec babel-node index.js --preset-env",
"coverage": "nyc npm test && nyc report --reporter=lcov --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"author": "Andela Simulations Programme",
"license": "MIT",
Expand Down

0 comments on commit 6e4530a

Please sign in to comment.