Skip to content

fix(tests): cover the example/ demo the docs send users to - #1220

Merged
Chemaclass merged 1 commit into
mainfrom
fix/1219-guard-the-example-demo
Aug 14, 2026
Merged

fix(tests): cover the example/ demo the docs send users to#1220
Chemaclass merged 1 commit into
mainfrom
fix/1219-guard-the-example-demo

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

Related #1219

docs/examples.md opens by pointing readers at example/, and example/README.md tells them to run ./bashunit example from the project root — a new user's first contact with the framework. Nothing ran it: make test collects from tests/ only, no workflow mentions the folder, and no test referenced it, so the demo could rot while CI stayed green.

💡 Changes

  • Add an acceptance test running the folder the way the README documents, in both sequential and parallel modes, so the guard runs in every CI mode rather than only under make test
  • Assert the outcome rather than a test count, so adding an example does not fail the guard; a third case pins that the folder actually holds tests, since a guard over an empty folder would pass forever
  • Drop the dead EXAMPLE_TEST_SCRIPTS variable — it pointed at example/logic_test.sh, deleted in a255fa7, and its recipes went away in a570e9a

docs/examples.md opens by pointing at example/, and example/README.md tells
readers to run `./bashunit example` from the project root. Nothing ran it:
`make test` collects from tests/ only, no workflow mentions the folder, and no
test referenced it -- so the first thing a new user runs could break while CI
stayed green.

Assert the outcome rather than a test count, so adding an example does not fail
the guard, and cover both modes plus the folder actually holding tests -- a
guard over an empty folder would pass forever.

Also drop EXAMPLE_TEST_SCRIPTS: it pointed at example/logic_test.sh, deleted in
a255fa7, and the recipes that used it went away in a570e9a.

Closes #1219
@Chemaclass Chemaclass added the bug Something isn't working label Aug 14, 2026
@Chemaclass Chemaclass self-assigned this Aug 14, 2026
@Chemaclass
Chemaclass merged commit 19e2eb0 into main Aug 14, 2026
37 checks passed
@Chemaclass
Chemaclass deleted the fix/1219-guard-the-example-demo branch August 14, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant