Skip to content

feat: enable dry_run for shebang and script recipes#3

Open
bluefing wants to merge 1 commit intoDataBooth:mainfrom
bluefing:feat/dry-run-all-recipes
Open

feat: enable dry_run for shebang and script recipes#3
bluefing wants to merge 1 commit intoDataBooth:mainfrom
bluefing:feat/dry-run-all-recipes

Conversation

@bluefing
Copy link
Copy Markdown

@bluefing bluefing commented Apr 7, 2026

just --dry-run does not execute recipes of any kind — linewise, shebang, or script. This was confirmed by the just maintainer in casey/just#3177.

Changes

Removes the assert_not_shebang guard from dry_run() so all recipe types can be dry-run tested.

Tests

  • test_dry_run_linewise — resolves variables and prints commands
  • test_dry_run_shebang — prints script body without executing
  • test_dry_run_script[script] recipe resolves variables and prints body
  • test_dry_run_with_args — arguments are interpolated into output
  • Updated existing shebang test to verify success instead of rejection

just --dry-run does not execute recipes of any kind — linewise,
shebang, or script (casey/just#3177). Removes the shebang guard
so all recipe types can be dry-run tested.
@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com bot commented Apr 7, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  src/pytest_just/fixture.py  29% smaller
  tests/test_dry_run.py  0% smaller
  tests/test_fixture_edge_cases.py  0% smaller

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