Skip to content

Add automated tests for bootstrap core and adapters #20

Description

@david-kariuki

Summary

Add automated test coverage for the bootstrap foundation so core behaviour, detection, execution, CLI handling, configuration, and distro adapters can evolve safely.

Scope

  • Add tests for distribution detection using controlled os-release fixtures
  • Test architecture normalization
  • Test supported and unsupported distro selection
  • Test command-line argument parsing and validation
  • Test dry-run command execution
  • Test privileged execution behaviour without modifying the host
  • Test distribution adapter loading and contract validation
  • Establish a repeatable local test command

Acceptance Criteria

  • Tests do not modify the developer workstation
  • Distribution detection tests use fixtures or controlled overrides where appropriate
  • Architecture normalization is covered
  • Valid and invalid CLI arguments are covered
  • Dry-run behaviour is verified
  • Privileged execution can be tested without performing privileged system changes
  • Missing or incomplete distro adapters are covered
  • Tests return reliable pass/fail exit codes
  • The test suite can be executed locally using a documented command

Activity

  1. added 2 commits that reference this issue on Oct 9, 2026
    9b5025e
    a9bc044
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions