Code coverage for test.

This commit is contained in:
Viktor Kovacs 2021-03-30 18:52:58 +02:00
parent 6bc1b33e8a
commit 4d63aa3a62
3 changed files with 12 additions and 2 deletions

6
.nycrc.json Normal file
View File

@ -0,0 +1,6 @@
{
"exclude": [
"*/external/*",
"*/viewer/*"
]
}

View File

@ -14,6 +14,8 @@ build_script:
test_script:
- npm run test
- npm run coverage
- npm run codecov
artifacts:
- path: build\final\package\*

View File

@ -10,11 +10,13 @@
"mocha": "^8.3.2",
"rewire": "^5.0.0",
"svgo": "^2.2.2",
"nyc": "^15.1.0"
"nyc": "^15.1.0",
"codecov": "^3.8.1"
},
"scripts": {
"test": "mocha test",
"coverage": "nyc mocha test",
"coverage": "nyc --reporter=lcov mocha test",
"codecov": "codecov",
"build": "python tools/create_package.py",
"update": "python tools/update_includes.py",
"svg": "python tools/optimize_svg_files.py"