Commit b9f3f92a authored by Mark Stenglein's avatar Mark Stenglein

Adds nyc coverage reporting

Hopefully this works correctly...
Signed-off-by: Mark Stenglein's avatarMark Stenglein <mark@stengle.in>
parent f3a77ef4
Pipeline #1124 passed with stages
in 5 minutes
......@@ -30,7 +30,7 @@ test_lib-ical:
- npm install
- npm install -g typescript ts-node gulp-cli
script:
- npm run glabCLI
- npm run cover
pages:
stage: deploy
......
......@@ -8,9 +8,10 @@
"dist/"
],
"scripts": {
"test": "mocha -R nyan -r ts-node/register test/**/*.spec.ts",
"test": "NODE_ENV=test mocha --recursive --compilers ts:ts-node/register --bail",
"glabCLI": "mocha -R mochawesome -r ts-node/register test/**/*.spec.ts",
"lint": "tslint -r tslint.json src/**/*.ts"
"lint": "tslint -r tslint.json src/**/*.ts",
"cover": "NODE_ENV=test nyc npm t"
},
"repository": {
"type": "git",
......@@ -26,10 +27,31 @@
"chai": "^3.5.0",
"mocha": "^3.2.0",
"mochawesome": "^2.0.4",
"nyc": "^10.1.2",
"sinon": "^1.17.7",
"ts-node": "^2.1.0",
"tslint": "^4.4.2",
"typescript": "^2.1.6"
},
"dependencies": {}
"dependencies": {},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"json",
"html"
],
"all": true
}
}
{
"files": [
"src/ContentLine.ts",
"src/util.ts"
"src/**/*.ts",
"src/*.ts"
],
"compilerOptions": {
"module": "commonjs",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment