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")