From aa07f87a3dcd7429496451f6df8863276f5e41f1 Mon Sep 17 00:00:00 2001 From: Michael Kurz Date: Tue, 16 Apr 2024 15:34:36 +0200 Subject: [PATCH] trying to get the test output file --- frontend/vue-gewoscout/Dockerfile.test | 4 +++- frontend/vue-gewoscout/docker-compose.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/vue-gewoscout/Dockerfile.test b/frontend/vue-gewoscout/Dockerfile.test index bd78b8a..e6431a3 100644 --- a/frontend/vue-gewoscout/Dockerfile.test +++ b/frontend/vue-gewoscout/Dockerfile.test @@ -4,4 +4,6 @@ WORKDIR /app COPY package.json . RUN npm install --save-dev vitest && npm install -COPY . . \ No newline at end of file +COPY . . + +RUN npx vitest --reporter=json --outputFile=/app/test-results/test-output.json \ No newline at end of file diff --git a/frontend/vue-gewoscout/docker-compose.yaml b/frontend/vue-gewoscout/docker-compose.yaml index 9dd055f..70f2281 100644 --- a/frontend/vue-gewoscout/docker-compose.yaml +++ b/frontend/vue-gewoscout/docker-compose.yaml @@ -7,6 +7,6 @@ services: dockerfile: Dockerfile.test volumes: - ./test-results:/app/test-results - command: ["npx", "vitest", "--reporter=json", "--outputFile=/app/test-results/test-output.json"] + command: ["npx", "vitest"] \ No newline at end of file