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
Say I have two tests where some expectations are the same in both. It would be nice if I could source the Thes out in a function and just call the function instead of copy&paste.
Is there a way without the need to define a custom matcher? For instance:
function assertHelpWithParameters(){
The status should be success
The output should include 'Parameters'
The output should include '-v'
The output should include 'The version'
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Say I have two tests where some expectations are the same in both. It would be nice if I could source the
The
s out in a function and just call the function instead of copy&paste.Is there a way without the need to define a custom matcher? For instance:
And then in the test I do:
Beta Was this translation helpful? Give feedback.
All reactions