forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scout] unique runId for reporting, disabled failed test reporter loc…
…ally (elastic#209507) ## Summary This PR makes few changes to scout reporter: Recently I found out that Playwright load configuration file _multiple times_: - first time after you run `npx playwright test -c ...` - on every worker start log before: ``` [main][~/github/kibana]$ npx playwright test --config x-pack/platform/plugins/shared/maps/ui_tests/playwright.config.ts [createPlaywrightConfig] called with runId: 18f35f735a10155c Running 1 test using 1 worker [createPlaywrightConfig] called with runId: 2633b4e4c20afa15 [chromium] › full_screen_mode.spec.ts:28:9 › Maps › Full screen mode @svlSecurity @svlOblt @svlSearch @ess ``` With our current logic unique `runId` will be generated on each configuration load, meaning for parallel run we will report failures in different directories instead of the same one. Playwright doesn't expose any unique identifier for the run, so we have do something similar described in microsoft/playwright#28941 (comment) log after fix: ``` [main][~/github/kibana]$ npx playwright test --config x-pack/platform/plugins/shared/maps/ui_tests/playwright.config.ts [createPlaywrightConfig] called with runId: 310a576f32d3b8a5 Running 1 test using 1 worker [createPlaywrightConfig] called with runId: 310a576f32d3b8a5 [chromium] › full_screen_mode.spec.ts:28:9 › Maps › Full screen mode @svlSecurity @svlOblt @svlSearch @ess ``` We also had a chat with @dolaru and agreed that Scout reporters to be disabled for local test run. Few reasons: - Scout custom reporting targets CI execution: events-based reporter was already disabled - Failed test reporter purpose is to provide html boilerplate to be annotated in pipeline build - When you run tests with IDE playwright plugin it provides its own reporter / history, should be enough.
- Loading branch information
1 parent
5af4d37
commit 6635fe5
Showing
3 changed files
with
69 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters