-
Notifications
You must be signed in to change notification settings - Fork 452
Closed
Labels
Component: Bash CodeEverything regarding the bash codeEverything regarding the bash codePriority: CriticalBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorSize: 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 describedType: Bug
Milestone
Description
Describe the bug
load function not available in setup_suite
% ./tests/bats/core/bin/bats -r ./tests/unit/template.bats
/Users/jkr/IdeaProjects/private/helm-secrets/tests/unit/setup_suite.bash: line 3: load: command not found
✗ setup_suite
bats warning: Executed 1 instead of expected 59 tests
59 tests, 1 failure, 58 not run
To Reproduce
Steps to reproduce the behavior:
- Create a load.bash file inside test directory
- Create a setup_suite.bash inside the test directory:
load './load' setup_suite() { true }
- Run test suite
- See error
Expected behavior
No error
Environment (please complete the following information):
- Bats Version [e.g. 1.4.0 or commit hash] c97b3a1
- OS: [e.g. Linux, FreeBSD, MacOS] MacOS
- Bash version: [e.g. 5.1] 3.2.57(1)-release
Additional context
Originally posted by @martin-schulze-vireso in #636 (comment)
Metadata
Metadata
Assignees
Labels
Component: Bash CodeEverything regarding the bash codeEverything regarding the bash codePriority: CriticalBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorSize: 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 describedType: Bug