Files
lincodex/.agents/standards/testing.md
T

1.4 KiB

Testing standard

Choose checks from the changed boundary and the evidence the task needs. Do not run unrelated suites just because a command exists.

Use unit tests for domain and application behavior, component tests for frontend behavior, and service tests for ML HTTP and schema behavior. Use integration tests with an isolated PostgreSQL when a change depends on migrations, SQL, transactions, or the real router-to-database path.

Contract changes need bundle and lint checks, regeneration of affected consumers, and generated drift checks. Infrastructure changes need rendered Compose configuration and the validator for each changed monitoring or deployment file.

The technical deployment smoke checks service routes and infrastructure readiness. The deploy test-e2e target runs Playwright against an isolated throwaway stack, including candidate and employer scenarios in frontend/e2e/. Report which scenarios ran, failed, or were skipped; a smoke pass alone does not validate a business workflow.

Do not report ranking accuracy, assessment validity, production latency, load capacity, privacy correctness, or model quality without the corresponding measured test and its dataset, environment, and limits. Planned targets and synthetic examples are not results.

Report each relevant check as passed, failed, skipped, or unavailable. Preserve the command and the reason when a check cannot run.