Skip to content

Enhancement | Testing strategy: review and action plan #346

Open

Description

@diego-ojeda-binbash

What

A critical review of the CLI's testing strategy (run on master @ 5dc5bd6, 2026-11-09). It covers which test types we use, where each one runs in the SDLC, and how coverage lines up with risk. It also proposes an action plan.

Full report (in Spanish, with diagrams): https://claude.ai/artifact/GAVjmZpM34E4LD3UVe9E95

Verdict

The test types we picked fit a CLI that wraps external binaries and AWS APIs: unit tests, in-process CLI tests, black-box bats and a real-AWS E2E. The problem was how we applied them:

  • No check was required to merge, so the unit tests stayed red on master from Feat | Remove docker dependency #316 to Fix | Restore the unit test suite #322 (Apr–Sep 2026).
  • The PyPI release ran zero tests.
  • The E2E ran in the wrong phase, with an obsolete matrix.
  • The riskiest paths had the lowest coverage: SSO (aws.py 41%), project create (project.py 32%), and plan/apply/--layers.

Overall branch coverage was 66%, across 225 pytest tests and 10 bats tests.

Already done

Pending

Ordered by impact and effort:

Not needed: performance/load tests and UI tests. An AWS emulator (moto/Floci/LocalStack) only helps in part: none of the ones we evaluated covers the SSO portal, sso-oidc or identitystore.

🤖 Generated with Claude Code

Metadata

Metadata

Labels

enhancementtest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions