Skip to content

stubbed_env.execute_function will run the script #47

@mtromp

Description

@mtromp

stubbed_env.execute_function works for scripts that are libraries of functions. Any scripts that include executable code will be executed twice.

Script:

function another-function(){
  echo "a function"
}
function main(){
    echo "testing"
    another-function
}
main "$@"

When trying to test just another-function you will get output to stdout from main as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions