mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 22:42:54 +00:00
test: add nyc coverage report
This commit is contained in:
@@ -38,6 +38,7 @@ test:
|
||||
artifacts:
|
||||
paths:
|
||||
- report
|
||||
- coverage
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
|
||||
1314
package-lock.json
generated
1314
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@@ -22,7 +22,7 @@
|
||||
"pack": "openstapps-core-tools pack",
|
||||
"prepublishOnly": "npm ci && npm run build",
|
||||
"schema": "node --max-old-space-size=8192 --stack-size=10240 ./node_modules/.bin/openstapps-core-tools schema src/core lib/schema",
|
||||
"test": "mocha --require ts-node/register --ui mocha-typescript test/*.spec.ts",
|
||||
"test": "nyc mocha --require ts-node/register --ui mocha-typescript test/*.spec.ts",
|
||||
"tslint": "tslint 'src/**/*.ts'"
|
||||
},
|
||||
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com",
|
||||
@@ -42,7 +42,7 @@
|
||||
"ts-optchain": "0.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openstapps/configuration": "0.5.0",
|
||||
"@openstapps/configuration": "0.7.0",
|
||||
"@openstapps/core-tools": "0.2.1",
|
||||
"@openstapps/logger": "0.0.3",
|
||||
"@types/chai": "4.1.7",
|
||||
@@ -56,10 +56,33 @@
|
||||
"humanize-string": "1.0.2",
|
||||
"mocha": "5.2.0",
|
||||
"mocha-typescript": "1.1.17",
|
||||
"nyc": "13.3.0",
|
||||
"rimraf": "2.6.3",
|
||||
"ts-node": "8.0.2",
|
||||
"tslint": "5.12.1",
|
||||
"typedoc": "0.14.2",
|
||||
"typescript": "3.3.3"
|
||||
},
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"per-file": true,
|
||||
"lines": 95,
|
||||
"statements": 95,
|
||||
"functions": 95,
|
||||
"branches": 95,
|
||||
"include": [
|
||||
"src/core/Route.ts",
|
||||
"src/core/Thing.ts",
|
||||
"src/core/Translator.ts"
|
||||
],
|
||||
"exclude": [],
|
||||
"extension": [
|
||||
".ts"
|
||||
],
|
||||
"reporter": [
|
||||
"html",
|
||||
"text-summary"
|
||||
],
|
||||
"all": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user