Skip to content
Snippets Groups Projects
Commit a75768fd authored by Bartłomiej Górnicki's avatar Bartłomiej Górnicki
Browse files

chore(ci): display tests coverage on merge request

parent 8830b215
No related branches found
No related tags found
1 merge request!14Update current embedders with modern links and iframes formats
......@@ -20,8 +20,13 @@ lint:commit message:
test:unit:
stage: test
script:
- npm run test
- npm run test:coverage
- NODE_ENV=production npm run build && node sample/demo-local.js
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
test:browser:
stage: test
......
......@@ -22,4 +22,5 @@
.run
browser-test
webpack.config.js
.idea
\ No newline at end of file
.idea
coverage
\ No newline at end of file
This diff is collapsed.
......@@ -20,6 +20,7 @@
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix",
"test": "mocha 'src/**/*.test.ts'",
"test:coverage": "nyc --reporter=cobertura mocha 'src/**/*.test.ts'",
"verify:ci": "/opt/testcafe/docker/testcafe-docker.sh --selector-timeout 2000 --assertion-timeout 2000 chromium,firefox browser-test/browser-test.js",
"verify:chrome": "testcafe --selector-timeout 2000 --assertion-timeout 2000 chrome browser-test/browser-test.js",
"verify:firefox": "testcafe --selector-timeout 2000 --assertion-timeout 2000 firefox browser-test/browser-test.js",
......@@ -53,6 +54,7 @@
"jsdom": "24.0.0",
"lodash": "4.17.21",
"mocha": "10.3.0",
"nyc": "15.1.0",
"prettier": "3.2.5",
"semantic-release": "23.0.2",
"testcafe": "3.5.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment