testing-strategy

Testing Strategy Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "testing-strategy" with this command: npx skills add hack23/riksdagsmonitor/hack23-riksdagsmonitor-testing-strategy

Testing Strategy Skill

Purpose

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

Testing Pyramid

  • 70% Unit Tests (fast, isolated, many)

  • 20% Integration Tests (moderate speed, component interaction)

  • 10% E2E Tests (slow, full user journeys)

Unit Testing Standards

  • Minimum 80% code coverage

  • 100% coverage for critical paths

  • Test all public APIs and error handling

  • Use AAA pattern (Arrange, Act, Assert)

Integration Testing

  • Database queries and transactions

  • API endpoint functionality

  • External service integration

  • Cache behavior

E2E Testing (Playwright/Cypress)

  • Critical user journeys

  • Form submissions

  • Cross-browser compatibility

  • Responsive design verification

Security Testing

  • SAST — CodeQL, ESLint security plugins

  • Dependency Scanning — npm audit, Dependabot

  • DAST — OWASP ZAP scans

  • Common vulnerability tests (SQLi, XSS, CSRF)

Accessibility Testing (WCAG 2.1 AA)

  • Keyboard navigation

  • Screen reader compatibility

  • Color contrast (4.5:1 normal, 3:1 large)

  • axe-core automated checks

Performance Testing

  • LCP < 2.5s, FID < 100ms, CLS < 0.1

  • Lighthouse performance audits

  • Load testing under peak conditions

CI Pipeline Integration

steps:

  • Run linter
  • Run unit tests with coverage
  • Run integration tests
  • Run E2E tests
  • Security scan
  • Lighthouse CI

Related Policies

  • Secure Development Policy

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

compliance-checklist

No summary provided by upstream source.

Repository SourceNeeds Review
General

secrets-management

No summary provided by upstream source.

Repository SourceNeeds Review
General

ai governance

No summary provided by upstream source.

Repository SourceNeeds Review