You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the examples show how to source a file into the test file, say for testing a set of functions.
I tried simply using "source ../lib/functions.sh" at the start of the test script, but got "/usr/local/bin/roundup: 3: ./functions-test.sh: source: not found".
Changing the line to ". ../lib/functions.sh" got further, but errored with:
". ../lib/functions.sh
function myfunc {
/usr/local/bin/roundup: 3: ../lib/functions.sh: function: not found"
I also tried adding both of these to a before() call, but neither worked.
How are you supposed to source functions for testing when they're defined in other files?
The text was updated successfully, but these errors were encountered:
None of the examples show how to source a file into the test file, say for testing a set of functions.
I tried simply using "source ../lib/functions.sh" at the start of the test script, but got "/usr/local/bin/roundup: 3: ./functions-test.sh: source: not found".
Changing the line to ". ../lib/functions.sh" got further, but errored with:
". ../lib/functions.sh
/usr/local/bin/roundup: 3: ../lib/functions.sh: function: not found"
I also tried adding both of these to a before() call, but neither worked.
How are you supposed to source functions for testing when they're defined in other files?
The text was updated successfully, but these errors were encountered: