Add E2E Tests and Code Coverage Infrastructure#65
Conversation
- Install Playwright, Craco, and Istanbul for E2E testing and coverage. - Configure Craco to instrument the CRA application for coverage. - Add Playwright tests covering all Auth and App pages. - Implement API mocking for independent frontend testing. - Configure nyc for coverage reporting in HTML, LCOV, JSON, and Text formats. - Update .gitignore to exclude test artifacts. Co-authored-by: defauth98 <52966246+defauth98@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Install Playwright, Craco, and Istanbul for E2E testing and coverage. - Configure Craco to instrument the CRA application for coverage. - Add Playwright tests covering all Auth and App pages. - Implement API mocking for independent frontend testing. - Configure nyc for coverage reporting in HTML, LCOV, JSON, and Text formats. - Update .gitignore to exclude test artifacts. Co-authored-by: defauth98 <52966246+defauth98@users.noreply.github.com>
- Migrated to Vite for frontend build and development. - Integrated `vite-plugin-istanbul` for code coverage collection. - Added comprehensive Playwright E2E tests for all mandatory pages. - Configured backend API mocking with Playwright's `route` API. - Set up `nyc` for coverage reporting in HTML, LCOV, and JSON formats. - Updated .gitignore to exclude test and coverage artifacts. Co-authored-by: defauth98 <52966246+defauth98@users.noreply.github.com>
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 33991011 | Triggered | Generic High Entropy Secret | 995a55a | server/Insomnia_2020-10-27.json | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Implemented a comprehensive E2E test suite using Playwright and configured a code coverage infrastructure for the Proffy web application.
Key features:
routeAPI to mock backend responses, ensuring the test suite is self-contained and stable.@craco/cracoto collect real code coverage from E2E runs without ejecting from Create React App.Current Coverage Summary:
PR created automatically by Jules for task 5331052816821470944 started by @defauth98