Skip to content

Commit

Permalink
Add test coverage. Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deliaz committed Aug 14, 2018
1 parent 1b2b6e9 commit e4cb5fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock.json
package-lock.json
.nyc_output
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
language: node_js
node_js:
- "node"
- "node"
after_success:
- npm run coverage
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Solutions to "Cracking the Coding Interview" **(6th edition)**

[![Build Status](https://travis-ci.org/Deliaz/ctci.svg?branch=master)](https://travis-ci.org/Deliaz/ctci)
[![Coverage Status](https://coveralls.io/repos/github/Deliaz/ctci/badge.svg?branch=master)](https://coveralls.io/github/Deliaz/ctci?branch=master)

### Language: JavaScript (ES6+)

### Run:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "mocha ./**/*.test.js"
"test": "nyc mocha ./**/*.test.js",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -17,6 +18,7 @@
},
"homepage": "https://github.com/Deliaz/ctci#readme",
"devDependencies": {
"coveralls": "^3.0.2",
"nyc": "^12.0.2"
},
"dependencies": {
Expand Down

0 comments on commit e4cb5fc

Please sign in to comment.