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

Link to Standard Out from Spock Reports #59

Open
jshickey opened this issue Mar 24, 2016 · 2 comments
Open

Link to Standard Out from Spock Reports #59

jshickey opened this issue Mar 24, 2016 · 2 comments

Comments

@jshickey
Copy link

It would be really helpful if there could be an option to display the standard out for tests. When doing Agile end-of-iteration demos, it would be great to walk through the Spock Report and then inspect the standard out which could show that data was saved to a database, json returned from a service call, etc....

@renatoathaydes
Copy link
Owner

While I understand your request, I think this problem can already be solved with external tools.

For example, the built-in Gradle reports already include stdout output (but not the Specification's block descriptions, of course). If you have a CI, it will most likely also make the test output available easily.

In any case, because stdout is already being read from other tools, I am not sure this would even be possible. If you think this should be easy to do, feel free to submit a PR so we can discuss this in more detail.

@renatoathaydes
Copy link
Owner

If anyone wants to contribute this:

My suggestion would be to try to use the already-generated JUnit reports (or even Gradle reports) which capture the standard output, and just add a little link to those reports from the spock-report.

Including any JS in the html reports just to show that output would be unacceptable. I really think that we should separate this information from standard reports, and that the reports should be "printable" in a sense that I don't want reports to require you to see them online as if it were a website.

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

2 participants