Skip to main content

Testing Strategy

Test Pyramid

Test Execution

Local Testing:
CI Testing:

Test Markers

  • unit: Fast, isolated unit tests
  • integration: Tests requiring external services
  • property: Property-based tests with Hypothesis
  • contract: MCP protocol compliance tests
  • regression: Performance regression tests
  • benchmark: Performance benchmarks
  • mutation: Mutation testing (weekly schedule)

Mutation Testing

Purpose: Measure test effectiveness Schedule: Weekly (too slow for every PR) Command:
Target Score: 80%+ mutation kills

Benchmark Testing

Purpose: Track performance regressions Execution: Every PR + weekly Thresholds:
  • Agent response: p95 < 5s
  • LLM call: p95 < 10s
  • Authorization: p95 < 50ms
Alert: Automatic PR comment if 20%+ slower Baseline Tracking:

Next Steps

Workflows

Configure test workflows

Deployment

Deploy tested code

Back to Overview

Return to CI/CD overview