-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Option to suppress all bashcov output #47
Comments
I'm not sure I understand that scenario. Couldn't you use |
In the scenario you've suggested, it looks like |
Correct. Sorry for the sloppy example. My point was that you should be able to use a wrapper script that checks the output of your actual script. Bashcov would call the wrapper script which in turn would call the actual script, similarly to this. Or am I missing something? |
No, the wrapper script would invoke Let me illustrate an example: showvars.sh -- This is the script under test
testvars.sh -- A crude example of a script that tests
In the above case, if I could modify Since a suppress switch doesn't exist, if I currently switch to using
Note that the aim here is to get coverage on If there was a switch on |
It needs to be possible to suppress all bashcov output so that it doesn't produce unwanted output that can disturb test harnesses, CI systems, etc. |
I'm assuming here that
--mute
was added to suppress the output from scripts under coveragebashcov generates some output of its own, like the "Run completed using ..." at the end of its execution. There is no bashcov switch to suppress such output (amongst others)
Scenario:
This would be useful in tests which execute shell script and verify stdout/stderr. The script-under-test's invocation could be prefixed with bashcov with a suppress switch; thus gathering coverage without breaking any existing stdout/stderr based validation.
The text was updated successfully, but these errors were encountered: