-
-
Notifications
You must be signed in to change notification settings - Fork 72
Parametrized example group #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just a quick look, but I'm guessing it's Describe "File $1"
It 'is executable'
The path "$2" should be executable
End
Describe 'help text'
It 'is present'
When run script "$2" --help
The output should include "NAME"
The output should include "DESCRIPTION"
The output should include "USAGE"
The output should include "OPTIONS"
The output should include "VERSION"
End
End
End |
You're right, my bad. With $2 it works correctly
Output:
I would have expected them to be grouped together btw... Something like this:
Do you think this can be done? As soon as I have free time I would also like to help with the documentation, the one on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ko1nksm
I wanted to repeat the same example group for multiple identical files, which would help reducing duplication...
I tried to do something like this:
However this doesn't work (as expected) because it is not a supported syntax.
This is also shown in this spec, where the same parameters are repeated 3 times:
shellspec/spec/general_spec.sh
Lines 530 to 595 in 45b02e0
Is there a better way of doing this or should be a proposed feature?
The text was updated successfully, but these errors were encountered: