Skip to content

Commit

Permalink
playwright coverage WIP(12+1)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorinrusevljan committed Nov 11, 2024
1 parent 9d703f0 commit 2295806
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion e2e/playwright.base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('/')`. */
Expand Down

0 comments on commit 2295806

Please sign in to comment.