Skip to content

Commit

Permalink
Fix coverage reporting, replace coveralls with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
philipstanislaus committed Feb 2, 2021
1 parent dcf6e93 commit 63e5116
Show file tree
Hide file tree
Showing 4 changed files with 845 additions and 601 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/coverage
/node_modules
/.env
/.nyc_output
/.vscode
11 changes: 11 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cache": false,
"extension": [".ts"],
"check-coverage": true,
"include": ["src/**"],
"reporter": ["html", "text", "text-summary"],
"statements": 90,
"branches": 90,
"functions": 95,
"lines": 90
}
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@
"@types/chai": "^4.2.7",
"@types/mocha": "^8.2.0",
"chai": "^4.1.2",
"coveralls": "^3.0.9",
"istanbul": "^0.4.5",
"codecov": "^3.8.1",
"mocha": "^8.2.1",
"mocha-lcov-reporter": "^1.3.0",
"remap-istanbul": "^0.13.0",
"nyc": "^15.1.0",
"ts-mocha": "^8.0.0",
"tslint": "^6.1.3",
"tslint-config-standard": "^9.0.0",
"typescript": "^4.1.3",
Expand All @@ -54,11 +53,8 @@
"build": "rm -rf build && tsc && npm run uglify",
"lint": "rm -rf build && tslint --project tsconfig.json './src/**/*.ts'",
"lint-fix": "rm -rf build && tslint --project tsconfig.json './src/**/*.ts' --fix",
"test-spec": "mocha build/**/*.spec.js -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- build/**/*.spec.js -R spec --bail",
"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",
"test-remap": "remap-istanbul -i coverage/coverage.json -o coverage -t html",
"test": "npm run build && npm run test-cov && npm run test-remap",
"test": "ts-mocha src/**/*.spec.ts --timeout 10000",
"test-coverage": "nyc npm test && codecov",
"uglify": "uglifyjs build/arrayToTree.js --compress --mangle --output build/arrayToTree.min.js"
}
}
Loading

0 comments on commit 63e5116

Please sign in to comment.