- Static analysis (SAST): analyze source code or binaries without executing them to catch style, correctness, and some security issues.
- Unit tests: verify individual functions, classes, or methods in isolation.
- Integration tests: validate interactions between modules, services, or external systems (databases, APIs).
- UI / User Experience tests: simulate user interactions to verify flows, layout, and behavior from an end-user perspective.
- Acceptance tests: confirm the system meets business requirements or API contracts.
- Performance / Load testing: measure responsiveness and throughput under expected and peak conditions.
- Dynamic analysis (DAST): probe the running application for runtime security issues and misconfigurations.

- Purpose: Verify a single unit of functionality (a function, method, or class) in isolation.
- Characteristics: Fast, deterministic, and provide quick feedback to developers.
- When to run: Locally (pre-commit/pre-push), in CI during the build stage.
- Examples of tools:
pytest,JUnit,xUnit,go test.
- Purpose: Ensure multiple components work correctly when composed together, including interactions with databases, caches, message queues, or external APIs.
- Characteristics: Slower than unit tests, may require test doubles or real service instances.
- When to run: CI testing stage, or in an isolated integration environment.
- Examples of tools: Postman/Newman, Testcontainers, Docker Compose, contract testing frameworks.

- Acceptance tests: Validate end-to-end behavior against business requirements or API contracts. These determine whether a release candidate is “acceptable” to stakeholders.
- UI tests (end-to-end / UX): Simulate real user journeys to check layout, navigation, and client-side behavior.
- Characteristics: Provide high confidence but are brittle and slower; they are best used selectively for critical paths.
- When to run: Against a deployable artifact in staging or a test environment that mirrors production.
- Examples of tools: Selenium, Cypress, Playwright, contract testing (Pact).

- Performance / Load testing: Measure responsiveness, latency, throughput, and resource utilization under expected or peak loads.
- Dynamic analysis (DAST): Scan a running application for runtime vulnerabilities and misconfigurations (issues that static analysis cannot find).
- When to run: Against deployable artifacts in staging, pre-production, or dedicated performance environments. Some teams run limited checks against production (e.g., canaries, controlled DAST) if risk-managed.
- Examples of tools: JMeter, Gatling, Locust for load; OWASP ZAP, Burp Suite for DAST.
SAST vs DAST: SAST analyzes code before execution to catch coding errors and some security flaws (fast and early). DAST works against a running app to find runtime issues that only appear when the system is executed. Use both: SAST early in the pipeline and DAST later against deployed environments.

Do not rely solely on production monitoring as the only safety net. Shift testing left to reduce defect costs, but also include pre-production runtime tests and controlled production techniques (canaries, feature flags) to catch issues that surface only in realistic environments.
- OWASP ZAP (DAST): https://www.zaproxy.org/
- Cypress (E2E testing): https://www.cypress.io/
- Selenium (browser automation): https://www.selenium.dev/
- JMeter (load testing): https://jmeter.apache.org/
- SonarQube (SAST): https://www.sonarqube.org/