Testing strategy

From Hack23/riksdagsmonitor · View interactive version

Testing strategy is an AI agent skill from the GitHub repository Hack23/riksdagsmonitor. Comprehensive testing strategy covering unit, integration, E2E, security, accessibility, and performance testing

How to use this skill

Skill file

Testing Strategy Skill

🔴 AI FIRST Quality Principle

Apply the AI FIRST principle: never accept first-pass quality. Minimum 2 iterations. Read all output, improve every section. No shortcuts.

Purpose

Defines comprehensive testing approaches ensuring code quality, security, accessibility, and performance through automated and manual testing.

Testing Pyramid

Unit Testing Standards

Integration Testing

E2E Testing (Playwright/Cypress)

Security Testing

  1. SAST — CodeQL, ESLint security plugins
  2. Dependency Scanning — npm audit, Dependabot
  3. DAST — OWASP ZAP scans
  4. Common vulnerability tests (SQLi, XSS, CSRF)

Accessibility Testing (WCAG 2.1 AA)

Performance Testing

CI Pipeline Integration

steps:
  - Run linter
  - Run unit tests with coverage
  - Run integration tests
  - Run E2E tests
  - Security scan
  - Lighthouse CI

Related Policies

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.