Thanks to visit codestin.com
Credit goes to github.com

Skip to content

load function not available in setup_suite #637

@jkroepke

Description

@jkroepke

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:

  1. Create a load.bash file inside test directory
  2. Create a setup_suite.bash inside the test directory:
    load './load'
    
    setup_suite() {
      true
    }
  3. Run test suite
  4. 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

No one assigned

    Labels

    Component: Bash CodeEverything regarding the bash codePriority: CriticalBroken 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)Status: ConfirmedThe reproducer worked as describedType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions