Skip to content

test(watch): unit cover watch_get_checksum polling helper#626

Merged
Chemaclass merged 2 commits intomainfrom
docs/watch-test-and-sidebar-validation
Apr 18, 2026
Merged

test(watch): unit cover watch_get_checksum polling helper#626
Chemaclass merged 2 commits intomainfrom
docs/watch-test-and-sidebar-validation

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

Summary

Follow-up to #625. Closes two remaining audit gaps:

  • test(watch): add unit coverage for watch_get_checksum polling helper — 6 unit tests covering the previously-untested polling path used by bashunit test -w/--watch: stable checksum for unchanged dirs, mtime-change detection, new-file detection, ignoring non-.sh files, single-file paths, empty result for missing paths.
  • Sidebar grouping verified via npm run docs:build: all 5 groups render in static HTML, all 19 page links resolve, globals.md cross-links (/custom-asserts, /test-doubles, /configuration#dev-log) render correctly.

Test plan

  • ./bashunit --no-parallel tests/unit/watch_checksum_test.sh → 6/6 passed
  • ./bashunit --parallel --strict tests/unit/watch_checksum_test.sh → 6/6 passed
  • make sa and make lint clean
  • npm run docs:build succeeds and sidebar groups render

@Chemaclass Chemaclass added the enhancement New feature or request label Apr 18, 2026
@Chemaclass Chemaclass self-assigned this Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ Contributor Report

User: @Chemaclass
Status: Trusted contributor (whitelisted)

This user is on the trusted contributors list and was automatically approved.

On Linux, `stat -f` returns filesystem info (not per-file mtime), so
the checksum changed whenever any file on the filesystem changed,
including non-.sh files. Reversed order to try GNU `stat -c` first
and fall back to BSD `stat -f` on macOS.
@Chemaclass Chemaclass merged commit f73af6d into main Apr 18, 2026
43 of 45 checks passed
@Chemaclass Chemaclass deleted the docs/watch-test-and-sidebar-validation branch April 18, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant