Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 943 Bytes

File metadata and controls

30 lines (20 loc) · 943 Bytes

Testing Strategy - Guard Proxy

Test Pyramid

Level Location Tools Coverage Goal
Unit (many, fast) src/backend/tests/unit/ pytest, Vitest >80%
Integration (some) src/backend/tests/integration/ pytest, Docker Key flows
Security tests/security/ sqlmap, OWASP ZAP, custom payloads OWASP Top 10
Performance benchmarks/ wrk, k6, Locust <20% WAF overhead

WAF Testing

Detection Targets (draft)

  • SQL Injection: >95% detection rate
  • XSS: >95% detection rate
  • Path Traversal: >95% detection rate
  • False positive rate: <10%

Test Data

  • Payloads: benchmarks/payloads/ (sqli.txt, xss.txt, legitimate.txt)
  • Results: benchmarks/results/ (timestamped JSON, gitignored)

Commands

See README.commands.md for all test commands.

For frontend work, use pnpm as the only package manager.