Skip to content

Commit 1de57bc

Browse files
committed
added codecov
1 parent 2598f52 commit 1de57bc

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
Learning JavaScript Data Structures and Algorithms
22
====================================
33

4-
Source code of **Learning JavaScript Data Structures and Algorithms** book.
4+
[![Build Status](https://travis-ci.org/loiane/javascript-datastructures-algorithms.svg?branch=third-edition)](https://travis-ci.org/loiane/javascript-datastructures-algorithms)
5+
6+
[![codecov](https://codecov.io/gh/loiane/javascript-datastructures-algorithms/branch/third-edition/graph/badge.svg)](https://codecov.io/gh/loiane/javascript-datastructures-algorithms)
7+
8+
Source code of **Learning JavaScript Data Structures and Algorithms** book.

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test:js": "mocha --compilers js:babel-core/register --colors -R spec --recursive ./test/js",
2424
"test:ts": "mocha -r ts-node/register --colors --recursive ./test/ts/**/*.spec.ts",
2525
"test": "npm run test:js && npm run test:ts",
26-
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -R spec --recursive ./test/js -- --compilers js:babel-core/register",
26+
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -R spec --recursive ./test/js/**/*.spec.ts -- --compilers js:babel-core/register && codecov",
2727
"go": "npm run clean && npm run test && npm run build",
2828
"serve": "http-serve html"
2929
},
@@ -36,11 +36,10 @@
3636
"babel-plugin-add-module-exports": "^0.2.1",
3737
"babel-preset-es2015": "^6.24.1",
3838
"chai": "^4.1.2",
39-
"coveralls": "^2.13.1",
39+
"codecov": "^2.3.0",
4040
"eslint": "^4.6.1",
4141
"istanbul": "^v1.1.0-alpha.1",
4242
"mocha": "^3.5.0",
43-
"ts-node": "^3.3.0",
44-
"typings": "^2.1.1"
43+
"ts-node": "^3.3.0"
4544
}
4645
}

0 commit comments

Comments
 (0)