Skip to content
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

Printing the output of a bash script executed by a goss test #243

Closed
transcedentalia opened this issue Jun 7, 2017 · 3 comments
Closed

Comments

@transcedentalia
Copy link

I have a goss test that is running a bash script. The bash script is printing some output with echo. The output of the bash script is not visible in goss' output or anywhere in the console/terminal.

Is it possible to see that output somehow? Browsing through the documentation I couldn't find anything helpful.

Thank you

@aelsabbahy
Copy link
Member

Currently no, command output us treated like file content. Goss loops over it line by line and fails or succeeds depending on if it's found.

This would be an interesting feature request to evaluate if this is something you want.

@fracasula
Copy link

I think it'd be an interesting failure, especially when debugging failing tests. When that happens I'm forced to get into the container myself to run the failing tests manually. Something like a --force-output option to enable it on demand would be really nice I think.

👍

@aelsabbahy
Copy link
Member

Being tracked here now: #483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants