From 2295806e5d267177f6f6a8f0326ba885d7590b27 Mon Sep 17 00:00:00 2001 From: Davorin Rusevljan Date: Mon, 11 Nov 2024 18:18:29 +0000 Subject: [PATCH] playwright coverage WIP(12+1) --- .github/workflows/pipeline.yaml | 2 +- .github/workflows/test-playwright.yaml | 1 + e2e/playwright.base.config.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 7accd65d..19e14d0c 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -178,7 +178,7 @@ jobs: - run: pip install coverage[toml] - run: ls -la coverage - - run: coverage combine coverage -i + - run: coverage combine coverage - run: coverage report -i - run: coverage html -i --show-contexts --title "FastAgency coverage for ${{ github.sha }}" diff --git a/.github/workflows/test-playwright.yaml b/.github/workflows/test-playwright.yaml index 3a9b11a8..c0f5f8e6 100644 --- a/.github/workflows/test-playwright.yaml +++ b/.github/workflows/test-playwright.yaml @@ -108,6 +108,7 @@ jobs: FAST_PID=$! echo "Started fastagency with PID: $FAST_PID" echo "FAST_PID=$FAST_PID" >> $GITHUB_OUTPUT + sleep 300 env: COVERAGE_PROCESS_START: "e2e/playwright.coverage.cfg" - run: echo "obtained FAST_PID" ${{ steps.fastagency-start.outputs.FAST_PID}} diff --git a/e2e/playwright.base.config.ts b/e2e/playwright.base.config.ts index 64048b0a..741ce48b 100644 --- a/e2e/playwright.base.config.ts +++ b/e2e/playwright.base.config.ts @@ -31,7 +31,7 @@ const baseConfig: PlaywrightTestConfig = { /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: 'list', + reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */