feat(wdio-reporter): add launcher service for single test run#78
Merged
therealbrad merged 3 commits intomainfrom Feb 23, 2026
Merged
feat(wdio-reporter): add launcher service for single test run#78therealbrad merged 3 commits intomainfrom
therealbrad merged 3 commits intomainfrom
Conversation
…all spec files Add TestPlanItService (WDIO launcher service) that creates a single test run in onPrepare and completes it in onComplete, ensuring all spec files across all worker batches report to one consolidated run. Extract shared state coordination into shared.ts. Add captureScreenshots option to service. Split monolithic webdriverio-reporter.md into 6 focused doc pages and update sidebar navigation and cross-references. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevent changes to docs/, packages/, cli/, or root config files from inadvertently triggering a main application release. The workflow now only runs when files under testplanit/ are modified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b31c69e to
697b632
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a WDIO launcher service (
TestPlanItService) that creates a single test run before any workers start and completes it after all workers finish. This ensures all spec files across all worker batches report to one consolidated test run, solving the issue whereoneReportonly coordinates workers running simultaneously within the same batch.Also extracts shared state coordination into
shared.ts, addscaptureScreenshotsas a service option, and splits the monolithicwebdriverio-reporter.mddoc into 6 focused pages.Type of Change
How Has This Been Tested?
91 tests across 3 test files, all passing:
service.test.ts(31 tests) — constructor validation, onPrepare lifecycle, resolveIds (string/numeric/not-found), tag resolution, onComplete, afterTest screenshot captureshared.test.ts(22 tests) — file path generation, read/write/delete, stale detection, worker count inc/dec, lock acquisition/failure/releasereporter.test.ts(38 tests) — includes 6 new tests for service-managed mode (adopts shared state IDs, skips run creation/completion, still tracks results)Coverage for new/modified files:
service.ts: 98.9% statements, 88% branchesshared.ts: 100% statements, 88% branchesTest Configuration:
Checklist
Additional Notes
Key files
packages/wdio-testplanit-reporter/src/service.ts— new launcher service withonPrepare,onComplete, andafterTesthookspackages/wdio-testplanit-reporter/src/shared.ts— extracted shared state file coordination (lock, read/write, worker counting)packages/wdio-testplanit-reporter/src/types.ts— newTestPlanItServiceOptionstype,captureScreenshotsoptionpackages/wdio-testplanit-reporter/src/reporter.ts— refactored to use shared.ts, addedmanagedByServiceflag supportdocs/docs/sdk/wdio-*.md— 6 new focused doc pages replacing the monolithicwebdriverio-reporter.mdUsage
🤖 Generated with Claude Code