From 7e6124ce4ac15b62336e68492998a8642925200f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20M=C3=B6rling?= Date: Fri, 15 May 2026 12:16:04 +0200 Subject: [PATCH] chore: add root gradle coverage and frontendCoverage tasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - frontendCoverage: runs 'npm run test:coverage' in frontend directory (vitest with coverage, enforces thresholds internally) - coverage: group='verification', runs backend jacocoTestReport and frontendCoverage sequentially — single command for both layers: ./gradlew coverage - check task continues to run only: frontendLint → frontendTest (coverage verification is added per-module: jacocoTestCoverage Verification on backend, vitest thresholds on frontend) --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index f49651b..f7a9181 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,18 @@ tasks.register('frontendTest', Exec) { commandLine 'npm', 'run', 'test' } +tasks.register('frontendCoverage', Exec) { + description = 'Run Vitest with coverage in the frontend directory' + workingDir = file("${rootProject.projectDir}/frontend") + commandLine 'npm', 'run', 'test:coverage' +} + +tasks.register('coverage') { + group = 'verification' + description = 'Run backend + frontend tests with coverage thresholds' + dependsOn(':backend:jacocoTestReport', 'frontendCoverage') +} + tasks.register('frontendE2E', Exec) { description = 'Run Playwright E2E tests in Docker (CI mode)' workingDir = file("${rootProject.projectDir}/frontend")