Skip to content

Fix run-once fence option validation and integration test#114

Merged
maxim-uvarov merged 6 commits intomainfrom
fix/run-once1
Mar 30, 2026
Merged

Fix run-once fence option validation and integration test#114
maxim-uvarov merged 6 commits intomainfrom
fix/run-once1

Conversation

@maxim-uvarov
Copy link
Copy Markdown
Member

Summary

  • Add run-once to the fence_options const table (with no short alias) so convert-short-options no longer warns about it being an unknown option
  • Rework the run_once.md integration test to use --echo mode — since run-once mutates the source file by design (rewriting fences to no-run), running the test directly always produces a dirty diff. The test now asserts on the --echo output instead, keeping the fixture file stable and committable

Test plan

  • convert-short-options 'run-once' returns "run-once" without warning
  • list-fence-options includes run-once with empty short column
  • run_once.md integration test passes without mutating the source file
  • Full test suite passes (all unit tests, integration changed only from environment-specific dynamic content)

claude and others added 6 commits March 30, 2026 03:06
…rning

run-once was missing from the fence_options const, so convert-short-options
flagged it as unknown. Added with empty short form since we decided not to
give it a short alias.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
run-once rewrites fences from `run-once` to `no-run` by design, so running
numd on the test file mutates it — making it impossible to commit a stable
test fixture. Instead, run with --echo and assert on the output content:
fences must contain `no-run` and not `run-once`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maxim-uvarov maxim-uvarov merged commit cefd9ec into main Mar 30, 2026
2 checks passed
@maxim-uvarov maxim-uvarov deleted the fix/run-once1 branch March 30, 2026 03:22
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.

2 participants