feat(tests): add complete test suite with unit, integration, E2E and …#30
Open
Edithct wants to merge 1 commit into
Open
feat(tests): add complete test suite with unit, integration, E2E and …#30Edithct wants to merge 1 commit into
Edithct wants to merge 1 commit into
Conversation
…mutation testing - Add Vitest unit tests: getPattern (70), presets with Zod oracle (21), helpers (11) - Add Vitest integration tests: banner.js (27), localStorage (16) - Add Playwright E2E tests: banner customization, accessibility (axe-core WCAG 2.1 AA), performance - Add Stryker mutation testing config for presets.js and helpers.js - Add ESLint + eslint-plugin-security for static analysis (OWASP Top 10) - Add @faker-js/faker for test data generation - Add Zod schemas as validation oracles (PresetSchema, ThemeSchema, PatternResultSchema) - Add vitest.config.js with jsdom environment and coverage thresholds (lines>=70%, functions>=80%) - Add playwright.config.ts with 4 browsers (chromium, firefox, webkit, mobile-chrome) - Add TESTING.md with full technical documentation of the test suite - Add trabajo.md with project presentation and analysis - Update package.json: add type:module + all testing devDependencies + npm scripts Coverage achieved: 74% lines, 72% branches, 100% functions Bugs found: 7 (including 1 critical TypeError in banner.js) E2E results: 29/34 pass, 5 fail (real production bugs - accessibility violations WCAG 2.1)
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.
…mutation testing
Coverage achieved: 74% lines, 72% branches, 100% functions
Bugs found: 7 (including 1 critical TypeError in banner.js)
E2E results: 29/34 pass, 5 fail (real production bugs - accessibility violations WCAG 2.1)
Pull Request Title
Description
Changes
Screenshots
(If applicable)
Related Issues
This PR:
Aditional information