Skip to content

Commit

Permalink
Add a way to measure test coverage (#777)
Browse files Browse the repository at this point in the history
* Add a way to measure test coverage

* Drop an accidentally added dependency

* Changelog
  • Loading branch information
tadzik committed Jun 5, 2024
1 parent e46e46a commit 55d8e65
Show file tree
Hide file tree
Showing 4 changed files with 753 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
1 change: 1 addition & 0 deletions changelog.d/777.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a way to measure test coverage.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build:app": "tsc --build",
"build:widget": "vite build --config widget/vite.config.ts",
"test": "yarn test:unit && yarn test:integration",
"test:coverage": "nyc --reporter=text --reporter=html mocha --exit --reporter list --ui bdd --require ts-node/register --recursive tests/*/*.ts",
"test:unit": "mocha --require ts-node/register --recursive tests/unit/*.ts",
"test:integration": "mocha --exit --reporter list --ui bdd --require ts-node/register --recursive tests/integration/*.ts",
"test:postgres": "SLACKBRIDGE_TEST_ENABLEPG=yes mocha --reporter list --ui bdd --require ts-node/register --recursive tests/integration/PgDatastoreTest.ts",
Expand Down Expand Up @@ -85,6 +86,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"js-yaml": "^4.1.0",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"postcss": "^8.4.21",
"prom-client": "^14.0.1",
"source-map-support": "^0.5.19",
Expand Down
Loading

0 comments on commit 55d8e65

Please sign in to comment.