Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#bash #bdd
Question
How to write a initialize() function in bash_spec ?
Answer

function init_script_data(){

MY_VAR=0

COUT_SOMETHING=0

unset IT_WILL_BE_CREATED

rm -f some.file echo " etc "

}


Tags
#bash #bdd
Question
How to write a initialize() function in bash_spec ?
Answer
?

Tags
#bash #bdd
Question
How to write a initialize() function in bash_spec ?
Answer

function init_script_data(){

MY_VAR=0

COUT_SOMETHING=0

unset IT_WILL_BE_CREATED

rm -f some.file echo " etc "

}

If you want to change selection, open document below and click on "Move attachment"

GitHub - voiski/bash_spec: BDD for bash
. We have a init method called init_script_data that you can override. It is generic, but you can redefine it in the middle of your code if you want to keep it isolated by a group of scenarios. <span>function init_script_data(){ MY_VAR=0 COUT_SOMETHING=0 unset IT_WILL_BE_CREATED rm -f some.file echo "etc" } Steps The steps are mapped in threee arrays with phrase as the key and function name as the value. GIVEN_MAP Steps that define the pre-conditions to the scenario; WHEN_MAP Steps related

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.