Skip to content

Commit

Permalink
unit-tests: enable code coverage using Istanbul/NYC
Browse files Browse the repository at this point in the history
  • Loading branch information
goneri committed Dec 14, 2023
1 parent ab68415 commit ad2ed60
Show file tree
Hide file tree
Showing 4 changed files with 713 additions and 81 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ CHANGELOG.html
.DS_Store
.direnv
.tool-versions
coverage
1 change: 1 addition & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ dictionaries:
ignorePaths:
- syntaxes/external/*.*
- media
- package.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@
"mocha": "^10.2.0",
"mochawesome": "^7.1.3",
"mochawesome-report-generator": "^6.2.0",
"nyc": "^15.1.0",
"ovsx": "^0.8.0",
"prettier": "^3.0.0",
"react": "^18.2.0",
Expand Down Expand Up @@ -794,7 +795,7 @@
"package": "yarn run webpack && npx vsce package",
"preinstall": "",
"pretest": "yarn run compile",
"unit-tests": "mocha --recursive test/units",
"unit-tests": "nyc --reporter=html --reporter=text --reporter=lcov mocha --recursive test/units",
"test-ui": "yarn run test-ui-current && yarn run test-ui-oldest",
"test-ui-current": "extest get-vscode -c max -s out/test-resources && extest get-chromedriver -c max -s out/test-resources && extest install-vsix -f ansible-*.vsix -e out/ext -s out/test-resources && extest install-from-marketplace redhat.vscode-yaml ms-python.python -e out/ext -s out/test-resources && extest run-tests -s out/test-resources -e out/ext --code_settings test/testFixtures/settings.json out/client/test/ui-test/allTestsSuite.js",
"test-ui-oldest": "extest get-vscode -c min -s out/test-resources && extest get-chromedriver -c min -s out/test-resources && extest install-vsix -f ansible-*.vsix -e out/ext -s out/test-resources && extest install-from-marketplace redhat.vscode-yaml ms-python.python -e out/ext -s out/test-resources && extest run-tests -s out/test-resources -e out/ext --code_settings test/testFixtures/settings.json out/client/test/ui-test/allTestsSuite.js",
Expand Down
Loading

0 comments on commit ad2ed60

Please sign in to comment.