Skip to content

ci: port CLI smoke tests to BATS#19

Merged
leodido merged 1 commit into
mainfrom
ci/bats-cli-tests
Feb 18, 2026
Merged

ci: port CLI smoke tests to BATS#19
leodido merged 1 commit into
mainfrom
ci/bats-cli-tests

Conversation

@leodido
Copy link
Copy Markdown
Owner

@leodido leodido commented Feb 18, 2026

Summary

  • Replace inline bash smoke tests with BATS test files using bats-assert for structured assertions
  • Split tests into three files: cli_common.bats (help, error UX), cli_linux.bats (probe, check, config, version), cli_nonlinux.bats (graceful degradation)
  • Pin bats-core/bats-action to SHA for reproducibility
  • Net change: -96 lines of bash plumbing, +216 lines of readable test cases

Test plan

  • Linux CI: 6 common + 7 Linux-specific tests pass, non-Linux tests skipped
  • macOS CI: 6 common + 8 non-Linux tests pass, Linux tests skipped
  • Verified all 21 tests locally on macOS

Replace inline bash smoke tests with BATS (bats-core) test files
using bats-assert for structured assertions. Tests are split into
three files: common (help, error UX), Linux-only (probe, check,
config, version), and non-Linux (graceful degradation).
@leodido leodido self-assigned this Feb 18, 2026
@leodido leodido merged commit 5406377 into main Feb 18, 2026
5 checks passed
@leodido leodido deleted the ci/bats-cli-tests branch February 18, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant