Skip to content

Set a default value for BATS_LIB_PATH #600

@hwittenborn

Description

@hwittenborn

Is your feature request related to a problem? Please describe.
I'm wanting to run some Bats helper libraries in my unit tests, but I have to install Bats on every run as they're run isolated in Docker containers.

I don't know how to get BATS_LIB_PATH exposed to Bats though. The only way I've found to add environment variables available to all programs globally is to place them in /etc/profile.d/, but this is only read on the login shell, and not when a new Bash shell process is created.

Describe the solution you'd like
If Bats had a default value for BATS_LIB_PATH already defined, including /usr/lib/bats at the minimum, this would solve my issue.

Describe alternatives you've considered
None considered.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Bash CodeEverything regarding the bash codeComponent: PackagingRegarding packaging for NPM, RPM, etc.Priority: MediumWrong or misleading documentation, broken behavior with workaroundSize: SmallChanges to a few localized lines of code (e.g. same function)Type: Enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions