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 want to have some tests to run specifically against dash and others against bash. Is there some way to do this?
After reading through the documentation it does not look like there are good options.
It's possible to add dash-specific code in separate executables with #! /bin/dash shebang but that mostly defeats the purpose of a shell test framework. I might as well use pytest!
It's possible to create two shellspec projects with their own .shellspec option files but I'd prefer a single test suite.
Execute the entire test suite multiple times with different --shell arguments and skip irrelevant tests. ShellSpec itself doesn't seem to provide a way to determine the top-level --shell argument and determining the current shell is famously nasty.
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
-
I want to have some tests to run specifically against dash and others against bash. Is there some way to do this?
After reading through the documentation it does not look like there are good options.
#! /bin/dash
shebang but that mostly defeats the purpose of a shell test framework. I might as well use pytest!Beta Was this translation helpful? Give feedback.
All reactions