chore: enhancements to claude code#904
Draft
carlosthe19916 wants to merge 11 commits intoguacsec:mainfrom
Draft
Conversation
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
Contributor
Reviewer's GuideAdds a Claude E2E testing workflow centered around Playwright, including new planner/generator/healer/executor agents, containerized Playwright remote server management hooks, an auto-execution PostToolUse hook, lint/format automation, and a refined e2e-test command plus GitHub/Playwright skills metadata. Sequence diagram for the new Playwright E2E testing workflowsequenceDiagram
actor Developer
participant Claude
participant e2e_test_command
participant playwright_test_planner
participant playwright_test_generator
participant playwright_test_executor
participant playwright_test_healer
participant lint_and_format_hook
participant playwright_remote_start
participant playwright_remote_stop
participant PlaywrightServer
Developer->>Claude: Request E2E Playwright tests
Claude->>e2e_test_command: Invoke e2e-test command
e2e_test_command->>playwright_test_planner: Plan test strategy
playwright_test_planner-->>e2e_test_command: Test plan
e2e_test_command->>playwright_test_generator: Generate Playwright tests
playwright_test_generator-->>e2e_test_command: Test code
e2e_test_command->>lint_and_format_hook: Run lint-and-format.sh
lint_and_format_hook->>lint_and_format_hook: npm run format:fix
lint_and_format_hook->>lint_and_format_hook: npm run check:write
lint_and_format_hook->>lint_and_format_hook: npm run check
lint_and_format_hook-->>e2e_test_command: Lint/format results
e2e_test_command->>playwright_remote_start: Run playwright-remote-start.sh
playwright_remote_start->>PlaywrightServer: Start containerized server
PlaywrightServer-->>playwright_remote_start: Ready on port 5000
playwright_remote_start-->>e2e_test_command: Runtime info
e2e_test_command->>playwright_test_executor: Execute tests (PostToolUse hook)
playwright_test_executor->>PlaywrightServer: Run Playwright tests
PlaywrightServer-->>playwright_test_executor: Test results
alt Tests failed
playwright_test_executor->>playwright_test_healer: Request healing
playwright_test_healer-->>playwright_test_executor: Updated tests/fixes
end
e2e_test_command->>playwright_remote_stop: Run playwright-remote-stop.sh
playwright_remote_stop->>PlaywrightServer: Stop container
PlaywrightServer-->>playwright_remote_stop: Stopped
playwright_remote_stop-->>e2e_test_command: Stop confirmation
e2e_test_command-->>Claude: Final E2E report
Claude-->>Developer: Summarized results and next steps
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #904 +/- ##
==========================================
- Coverage 64.40% 63.91% -0.49%
==========================================
Files 187 187
Lines 3295 3295
Branches 746 746
==========================================
- Hits 2122 2106 -16
- Misses 875 891 +16
Partials 298 298 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary by Sourcery
Introduce a structured Claude E2E testing workflow with Playwright-specific agents, hooks, and skills, and integrate automatic execution of relevant tests on file changes.
Enhancements:
Tests: