Skip to main content

Testing Architecture

Summary

The strongest verified automated lifecycle evidence is script-based Recruitment smoke coverage, supplemented by Employee smoke coverage. Dedicated onboarding/offboarding unit, integration, architecture, exit-flow, and frontend component test suites were not found in the inspected source.

Audience

Developers, QA, support, and solution architects assessing change risk.

Verified test flow

Coverage matrix

LayerEvidenceBoundary
Recruitment lifecycle smokeOffer, acceptance idempotence, onboarding move/status/completion, candidate status, events, compatibility, reportsScript-based end-to-end checks
Employee smokeEmployee profile and lifecycle integrationSeparate service script
Domain unit testsNo dedicated relevant project foundMissing evidence
Persistence integration testsNo dedicated relevant project foundMissing evidence
Gateway dual-path contract testsNo dedicated suite foundMissing evidence
Exit/offboarding automationNo dedicated test foundMissing evidence
Frontend component testsNo relevant tests foundMissing evidence
Security and tenant isolationNo dedicated lifecycle suite foundMissing evidence

The layered Recruitment code exposes useful seams at repository, tenant-context, audit/timeline, employee gateway, workflow gateway, unit-of-work, and message transport boundaries. Recommended coverage should exercise domain transitions independently, persistence tenant filters, outbox atomicity, Employee failure/retry behavior, compatibility side-effect parity, direct-service authorization, and monolith exit partial-failure handling.

No commands, environments, hosts, ports, test identifiers, or credentials are reproduced here. Epic 14.3 will document API contracts separately.

Requires confirmation

  • Which smoke suites are mandatory release gates and in which environments.
  • Test data cleanup and tenant isolation strategy.
  • Required parity matrix before Recruitment compatibility cutover.
  • Ownership for exit/offboarding and frontend automated coverage.

Source References

  • microservices/scripts/smoke-recruitment.ps1
  • microservices/scripts/smoke-employee.ps1
  • microservices/src/recruitment-service/Application/Commands/OnboardingCommands.cs
  • microservices/src/recruitment-service/Infrastructure/RecruitmentDbContext.cs
  • Controllers/HrOperationsController.cs

See Also

Keywords

  • Smoke testing
  • Contract testing
  • Test coverage gap

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Review cycle: Quarterly