Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

automatically sourcing setup/teardown scripts? #255

Open
bje- opened this issue Jun 19, 2018 · 1 comment
Open

automatically sourcing setup/teardown scripts? #255

bje- opened this issue Jun 19, 2018 · 1 comment

Comments

@bje-
Copy link

bje- commented Jun 19, 2018

Bats allows for setup and teardown functions inside individual test cases. Is there a way to have a setup script sourced at the start of the test run to establish convenience functions and the like? It's a pain to have to remember to load such a script at the top of every test script. Thanks.

cdevinesr added a commit to cdevinesr/bats-core that referenced this issue Jul 3, 2018
Addresses sstephenson/bats#255

This feature takes the same type of arguments 'load' would.  It
can be used at the command line with --global-helper=helper_script,
or via environment variable by exporting BATS_GLOBAL_HELPER_SCRIPT.
cdevinesr added a commit to cdevinesr/bats-core that referenced this issue Jul 3, 2018
Addresses sstephenson/bats#255

This feature takes the same type of arguments 'load' would.  It
can be used at the command line with --global-helper=helper_script,
or via environment variable by exporting BATS_GLOBAL_HELPER_SCRIPT.
@AssafKatz3
Copy link

@bje- This project is no longer being actively maintained by its original autoher (see #236).

You might want to migrate to the community maintained fork bats-core and report your issue there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants