How does the table syntax work for the reuse of code ?
Answer
Table () { When I use with the arguments $1 Then It should be valid " [ $ACTION = ${2 :- $1 } ] " } Row ' build ' Row ' b ' ' build ' Row ' validate ' Row ' v ' ' validate '
Tags
#bash #bdd
Question
How does the table syntax work for the reuse of code ?
Answer
?
Tags
#bash #bdd
Question
How does the table syntax work for the reuse of code ?
Answer
Table () { When I use with the arguments $1 Then It should be valid " [ $ACTION = ${2 :- $1 } ] " } Row ' build ' Row ' b ' ' build ' Row ' validate ' Row ' v ' ' validate '
If you want to change selection, open document below and click on "Move attachment"
GitHub - voiski/bash_spec: BDD for bash code. Here you can write a scenario and define placeholders as normally you do with functions. The principe is simple, you override the Table function and make use of it with the Row function. <span>Table() { When I use with the arguments $1 Then It should be valid "[ $ACTION = ${2:-$1} ]" } Row 'build' Row 'b' 'build' Row 'validate' Row 'v' 'validate' Skip scenarios You can skip a number of scenarios in order to resume from failing scenarios for example. Or if you are adding a new one and you want to run from there. export SKIP_TEST=
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised 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.