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
I was just wondering, what is the preferred way of doing something like the example below (which doesn't seem to work):
# my_command.test.sh# Test my_command in fact does call my_other_command. src/my_command.sh # Assuming my_command is a function
CALLS_COUNT=0
my_other_command {
# do something
CALLS_COUNT=$(( CALLS_COUNT +1))
}
tesMyCommand() {
my_command
assertEquals 1 $CALLS_COUNT
}
NOTE: This is assumed to be called like this: shunit2 my_command.test.sh
The text was updated successfully, but these errors were encountered:
I was just wondering, what is the preferred way of doing something like the example below (which doesn't seem to work):
NOTE: This is assumed to be called like this:
shunit2 my_command.test.sh
The text was updated successfully, but these errors were encountered: