Skip to content

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Dec 8, 2025

📚 Description

Adds support for passing arguments to bootstrap files, enabling more flexible test setup configurations. This allows users to customize bootstrap behavior per test run without modifying the bootstrap file itself.

Related #546

🔖 Changes

  • Support passing arguments to bootstrap via --env "file.sh arg1 arg2" syntax
  • Add BASHUNIT_BOOTSTRAP_ARGS environment variable for argument passing
  • Update bootstrap sourcing in both test and benchmark commands
  • Add acceptance tests for the new functionality

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

@Chemaclass Chemaclass added the enhancement New feature or request label Dec 8, 2025
@Chemaclass Chemaclass self-assigned this Dec 8, 2025
@Chemaclass Chemaclass changed the title Bootstrap args feat: add bootstrap argument passing support Dec 8, 2025
@Chemaclass Chemaclass force-pushed the feat/546-bootstrap-args branch from d8f714c to 343b2ae Compare December 8, 2025 09:34
@Chemaclass Chemaclass changed the title feat: add bootstrap argument passing support Add bootstrap argument passing support Dec 8, 2025
Allow passing arguments to bootstrap files via the --env flag.
Arguments can be passed inline (e.g., --env "bootstrap.sh arg1 arg2")
or via the BASHUNIT_BOOTSTRAP_ARGS environment variable.

Arguments are available as $1, $2, etc. inside the bootstrap script,
enabling dynamic configuration of the testing environment.

Closes #546 (partial)
@Chemaclass Chemaclass force-pushed the feat/546-bootstrap-args branch from 343b2ae to a47f6d1 Compare December 8, 2025 09:51
@Chemaclass Chemaclass merged commit 03ff6e8 into main Dec 8, 2025
16 checks passed
@Chemaclass Chemaclass deleted the feat/546-bootstrap-args branch December 8, 2025 10:06
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.

2 participants