Skip to content

Assert play scoping without a Dokku server - #430

Merged
josegonzalez merged 1 commit into
mainfrom
412-plays-bats-play-scoping-tests-fail-without-dokku-instead-of-skipping
Aug 7, 2026
Merged

Assert play scoping without a Dokku server#430
josegonzalez merged 1 commit into
mainfrom
412-plays-bats-play-scoping-tests-fail-without-dokku-instead-of-skipping

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

The seven play-scoping tests in plays.bats drove plain plan, which probes the server for every play that actually runs, so five of them failed rather than skipped on a machine without dokku. They now drive plan --list-tasks, which resolves play selection against the same merged context and returns before any task is planned, so the coverage stays available to contributors without Dokku instead of being gated away behind require_dokku. A new Go test pins that plan and plan --list-tasks agree on play selection, since the two resolve play when: in separate code paths.

The full bats suite now runs clean with no dokku on $PATH: 216 pass, 0 fail. tests/bats/README.md gains the gating convention that was previously only implied, so the next server-touching test does not repeat this.

The dead playWhenSkipped variable noticed in renderListTasks while working on this is left for #429.

Fixes #412

The seven play-scoping tests in `plays.bats` drove plain `plan`, which probes the server for every play that actually runs, so five of them failed rather than skipped on a machine without dokku. They now drive `plan --list-tasks`, which resolves play selection against the same merged context and returns before any task is planned, so the coverage stays available to contributors without Dokku instead of being gated away behind `require_dokku`. A new Go test pins that `plan` and `plan --list-tasks` agree on play selection, since the two resolve play `when:` in separate code paths.
@josegonzalez josegonzalez changed the title fix: assert play scoping without a Dokku server Assert play scoping without a Dokku server Aug 7, 2026
@josegonzalez
josegonzalez merged commit 979e72a into main Aug 7, 2026
19 checks passed
@josegonzalez
josegonzalez deleted the 412-plays-bats-play-scoping-tests-fail-without-dokku-instead-of-skipping branch August 7, 2026 18:26
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.

plays.bats play-scoping tests fail without dokku instead of skipping

1 participant