Skip to content

Commit

Permalink
FIO-8556: Test coverage metrics (#5755)
Browse files Browse the repository at this point in the history
* FIO-8556: Add test coverage metrics

* FIO-8556: Add gitignore and correcting nyc coverage params

* FIO-8556: Change tests coverage config to not fail test command

* FIO-8556: Move part of unit tests and their fixtures to the test/unit folder to check if the tests start passing in pipeline

* FIO-8556: Changing fixtures location for tests
  • Loading branch information
mikekotikov authored Sep 17, 2024
1 parent 3c07a14 commit a58f0cc
Show file tree
Hide file tree
Showing 346 changed files with 2,574 additions and 702 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ bower_components
.ruby-version
.ruby-gemset
/.vs
coverage
.nyc_output
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@
"dopublish": "npm run build && npm run tag && npm publish",
"lint": "eslint ./src --fix",
"serve": "jekyll serve --config _config.yml,_config.dev.yml",
"test": "mocha 'src/**/*.unit.js'",
"test:updateRenders": "npm run lib && TZ=UTC node --require jsdom-global/register test/updateRenders.js",
"test:e2e": "NODE_OPTIONS=\"--max-old-space-size=4096\" karma start --verbose --single-run"
"test": "nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/unit/*.unit.js",
"test:updateRenders": "npm run lib && cross-env TZ=UTC node --require jsdom-global/register test/updateRenders.js",
"test:e2e": "NODE_OPTIONS=\"--max-old-space-size=4096\" karma start --verbose --single-run",
"show-coverage": "open coverage/lcov-report/index.html"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -155,6 +156,7 @@
"mocha": "^10.3.0",
"mock-local-storage": "^1.1.24",
"natives": "^1.1.6",
"nyc": "^17.0.0",
"power-assert": "^1.6.1",
"pre-commit": "^1.2.2",
"pretty": "^2.0.0",
Expand All @@ -174,5 +176,17 @@
"webpack-cli": "^5.1.1",
"webpack-node-externals": "^3.0.0",
"webpack-stream": "^7.0.0"
},
"nyc": {
"check-coverage": true,
"statements": 63,
"branches": 63,
"functions": 61,
"lines": 64,
"include": ["src/**/*.js"],
"exclude": [
"src/**/fixtures"
],
"all": true
}
}
1 change: 0 additions & 1 deletion src/components/signature/Signature.unit.js

This file was deleted.

91 changes: 0 additions & 91 deletions test/forms/wizardWithFieldsValidationChild.d.ts

This file was deleted.

186 changes: 0 additions & 186 deletions test/forms/wizardWithFieldsValidationChild.js

This file was deleted.

41 changes: 0 additions & 41 deletions test/forms/wizardWithFieldsValidationParent.d.ts

This file was deleted.

Loading

0 comments on commit a58f0cc

Please sign in to comment.