Add E2E testing and scheduled CI runs with coverage reporting#21
Open
devstefancho wants to merge 1 commit into
Open
Add E2E testing and scheduled CI runs with coverage reporting#21devstefancho wants to merge 1 commit into
devstefancho wants to merge 1 commit into
Conversation
- Split CI into 3 jobs: unit-test (multi-OS), e2e-test (Playwright), build - Add cron schedule to run twice daily (00:00, 12:00 UTC) - Add Playwright webServer config for auto server startup in CI - Add CI-specific settings: retries, traces on failure, screenshot on failure - Add coverage JSON report generation and artifact upload - Upload Playwright HTML report and failure traces as artifacts - Add test:e2e, test:e2e:install, test:coverage:ci scripts to package.json - Add coverage/, playwright-report/, test-results/ to .gitignore https://claude.ai/code/session_01Nt6g9KnwBiBfXd5n7ET4sH
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
This PR enhances the CI/CD pipeline by introducing end-to-end testing with Playwright, adding scheduled daily runs, and improving test coverage reporting in CI environments.
Key Changes
CI Workflow Enhancements
testjob tounit-testfor claritye2e-testjob running Playwright tests on Ubuntubuildjob that depends onunit-testcompletionE2E Testing Setup
e2e-testCI job with Playwright browser installation and test executionPlaywright Configuration
playwright.config.tswith CI-aware settings:Test Scripts
test:coverage:ciscript with JSON reporter for CI environmentstest:e2eandtest:e2e:installscripts for Playwright executiontest:coveragescript with explicit reportersBuild Artifacts
.gitignoreto exclude coverage reports, Playwright reports, and test resultsImplementation Details
The CI pipeline now follows a three-stage approach: unit tests with coverage (Linux only), E2E tests, and build artifact generation. Coverage reports are only collected on Linux to reduce CI overhead while maintaining quality metrics. The Playwright configuration intelligently adapts to CI vs local environments, enabling faster local development while ensuring stability in CI with retries and detailed reporting.
https://claude.ai/code/session_01Nt6g9KnwBiBfXd5n7ET4sH