fix: robust coverage calculation in test suite script

Fix bash arithmetic syntax error when calculating coverage percentages
from LCOV files. The issue occurred when grep results contained whitespace
or when values were empty strings.
This commit is contained in:
Benjamin
2025-11-23 23:56:10 +01:00
parent a1c71a023c
commit a46715a2f3
4 changed files with 28 additions and 16 deletions
+3
View File
@@ -12,6 +12,9 @@ COPY webapp/package*.json ./
RUN --mount=type=cache,target=/root/.npm \
npm ci --no-audit --no-fund --no-progress
COPY webapp/ ./
# Enable code instrumentation for E2E coverage if requested
ARG CYPRESS_COVERAGE=false
ENV CYPRESS_COVERAGE=$CYPRESS_COVERAGE
RUN npm run build
FROM golang:alpine AS builder