Skip to content

Commit 63e5116

Browse files
Fix coverage reporting, replace coveralls with codecov
1 parent dcf6e93 commit 63e5116

File tree

4 files changed

+845
-601
lines changed

4 files changed

+845
-601
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/coverage
22
/node_modules
33
/.env
4+
/.nyc_output
5+
/.vscode

.nycrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"cache": false,
3+
"extension": [".ts"],
4+
"check-coverage": true,
5+
"include": ["src/**"],
6+
"reporter": ["html", "text", "text-summary"],
7+
"statements": 90,
8+
"branches": 90,
9+
"functions": 95,
10+
"lines": 90
11+
}

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@
3737
"@types/chai": "^4.2.7",
3838
"@types/mocha": "^8.2.0",
3939
"chai": "^4.1.2",
40-
"coveralls": "^3.0.9",
41-
"istanbul": "^0.4.5",
40+
"codecov": "^3.8.1",
4241
"mocha": "^8.2.1",
43-
"mocha-lcov-reporter": "^1.3.0",
44-
"remap-istanbul": "^0.13.0",
42+
"nyc": "^15.1.0",
43+
"ts-mocha": "^8.0.0",
4544
"tslint": "^6.1.3",
4645
"tslint-config-standard": "^9.0.0",
4746
"typescript": "^4.1.3",
@@ -54,11 +53,8 @@
5453
"build": "rm -rf build && tsc && npm run uglify",
5554
"lint": "rm -rf build && tslint --project tsconfig.json './src/**/*.ts'",
5655
"lint-fix": "rm -rf build && tslint --project tsconfig.json './src/**/*.ts' --fix",
57-
"test-spec": "mocha build/**/*.spec.js -R spec --bail",
58-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- build/**/*.spec.js -R spec --bail",
59-
"test-and-send-cov-to-coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- build/**/*.spec.js -R spec --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
60-
"test-remap": "remap-istanbul -i coverage/coverage.json -o coverage -t html",
61-
"test": "npm run build && npm run test-cov && npm run test-remap",
56+
"test": "ts-mocha src/**/*.spec.ts --timeout 10000",
57+
"test-coverage": "nyc npm test && codecov",
6258
"uglify": "uglifyjs build/arrayToTree.js --compress --mangle --output build/arrayToTree.min.js"
6359
}
6460
}

0 commit comments

Comments
 (0)