Share code between setup_suite and tests #636
-
Hi, I have multiple helper functions that I share between tests and setup_file functions. Currently, I'm unable to load additional files through
Do I have to define all the helper functions twice? Is it possible to load helper functions on setup_suite.bash once and have them available for the whole suite? Instead pollute the issues here with my question, I feel open a discussion here is a better approch. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Unless the helper functions are exported, you will have to load them multiple Times, once per process. Setup_suite, setup_file and setup/test have their own process, so three in total. The load function not being available in setup_suute is an oversight. Please Open an issue for that. |
Beta Was this translation helpful? Give feedback.
Unless the helper functions are exported, you will have to load them multiple Times, once per process. Setup_suite, setup_file and setup/test have their own process, so three in total.
The load function not being available in setup_suute is an oversight. Please Open an issue for that.