Skip to content

Commit

Permalink
test: show html report locally
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Mar 1, 2024
1 parent 4904454 commit 72d3f39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,21 @@ services:
build:
dockerfile: ./tests/Dockerfile
ports:
- 9323:9323
- '9323:9323'
ipc: host
expose:
- 9323
volumes:
- ./tests:/work/tests
- ./test-results:/work/test-results
- ./playwright-report:/work/playwright-report
entrypoint: "npx playwright test --config=playwright-ci.config.ts"
entrypoint: "npx playwright test --config=playwright-docker.config.ts"
depends_on:
deephaven-plugins:
condition: service_healthy

update-snapshots:
extends:
service: e2e-tests
entrypoint: 'npx playwright test --config=playwright-ci.config.ts --update-snapshots'
entrypoint: 'npx playwright test --config=playwright-docker.config.ts --update-snapshots'
depends_on:
deephaven-plugins:
condition: service_healthy
2 changes: 1 addition & 1 deletion playwright-ci.config.ts → playwright-docker.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config: PlaywrightTestConfig = {
...DefaultConfig.use,
baseURL: 'http://deephaven-plugins:10000/ide/',
},
reporter: [['github'], ['html']],
reporter: process.env.CI ? [['github'], ['html']] : DefaultConfig.reporter,
};

export default config;
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ WORKDIR /work/

RUN npm install @playwright/[email protected]
COPY playwright.config.ts .
COPY playwright-ci.config.ts .
COPY playwright-docker.config.ts .

0 comments on commit 72d3f39

Please sign in to comment.