Skip to content

Commit

Permalink
playwright coverage WIP2(6)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorinrusevljan committed Nov 12, 2024
1 parent 68c2dd5 commit 198021a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,11 @@ jobs:
id: fastagency-start
run: |
# Start fastagency and grab its pid
# export COVERAGE_PROCESS_START
nohup gunicorn --workers=1 e2e.llm-sans.main:app >nohup.txt 2>nohup-error.txt &
# Get the process ID (PID)
FAST_PID=$!
echo "Started fastagency with PID: $FAST_PID"
echo "FAST_PID=$FAST_PID" >> $GITHUB_OUTPUT
echo "Sleeping for 5 seconds to let fastagency start up..."
sleep 5
env:
COVERAGE_PROCESS_START: "e2e/playwright.coverage.cfg"
- run: echo "obtained FAST_PID" ${{ steps.fastagency-start.outputs.FAST_PID}}
Expand Down
8 changes: 7 additions & 1 deletion playwright.llm-sans.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ import { defineConfig } from "./e2e/playwright.base.config.ts";
export default defineConfig(
{
testDir: './e2e/llm-sans',
}
webServer: {
command: 'fastagency run e2e/llm-sans/main.py',
url: 'http://127.0.0.1:32123',
// env: testEnv,
reuseExistingServer: true,
},
},
)

0 comments on commit 198021a

Please sign in to comment.