codecov integration with portainer-suite [PLA-119] (#210)

release/2.25
Yajith Dayarathna 2024-12-06 12:09:09 +13:00 committed by GitHub
parent 2f4f1be99c
commit 17648d12fe
4 changed files with 376 additions and 262 deletions

View File

@ -67,10 +67,10 @@ clean: ## Remove all build and download artifacts
test: test-server test-client ## Run all tests
test-client: ## Run client tests
yarn test $(ARGS)
yarn test $(ARGS) --coverage
test-server: ## Run server tests
$(GOTESTSUM) --format pkgname-and-test-fails --format-hide-empty-pkg --hide-summary skipped -- -cover ./...
$(GOTESTSUM) --format pkgname-and-test-fails --format-hide-empty-pkg --hide-summary skipped -- -cover -covermode=atomic -coverprofile=coverage.out ./...
##@ Dev
.PHONY: dev dev-client dev-server

View File

@ -161,6 +161,7 @@
"@types/uuid": "^3.3.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@vitest/coverage-v8": "^2.0.4",
"auto-ngtemplate-loader": "^3.1.2",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
@ -214,7 +215,7 @@
"undici": "^6.2.1",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.2.1",
"vitest": "^2.0.4",
"vitest-dom": "^0.1.1",
"webpack": "^5.88.2",
"webpack-build-notifier": "^2.3.0",

View File

@ -9,7 +9,8 @@ export default defineConfig({
environment: 'jsdom',
setupFiles: ['./app/setup-tests/setup-msw.ts', './app/setup-tests/stub-modules.ts', './app/setup-tests/setup.ts', './app/setup-tests/setup-rtl.ts'],
coverage: {
reporter: ['text', 'html'],
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: ['node_modules/', 'app/setup-tests/global-setup.js'],
},
bail: 2,

628
yarn.lock

File diff suppressed because it is too large Load Diff