-
Notifications
You must be signed in to change notification settings - Fork 440
Open
Labels
Component: DocsPriority: HighBroken behavior in specific environments like in parallel mode or only on some operating systemsBroken behavior in specific environments like in parallel mode or only on some operating systemsSize: SmallChanges to a few localized lines of code (e.g. same function)Changes to a few localized lines of code (e.g. same function)Status: ConfirmedThe reproducer worked as describedThe reproducer worked as describedgood first issue
Description
https://bats-core.readthedocs.io/en/stable/writing-tests.html#load-share-common-code states that using load
with a script that has declares will result in the declares not being globally visible. I ran into this and found the above docs section after running around in circles a bit. Setting -g on the declare seems to have fixed the immediate problem. It would be nice if the gotchas page also had a reference to this.
Metadata
Metadata
Assignees
Labels
Component: DocsPriority: HighBroken behavior in specific environments like in parallel mode or only on some operating systemsBroken behavior in specific environments like in parallel mode or only on some operating systemsSize: SmallChanges to a few localized lines of code (e.g. same function)Changes to a few localized lines of code (e.g. same function)Status: ConfirmedThe reproducer worked as describedThe reproducer worked as describedgood first issue