Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

make it possible to specify an output file with a --out option #76

wants to merge 1 commit into


None yet
2 participants

svoynow commented Jul 19, 2013

Seems like somebody had this feature in mind at some point. In runner.rb there's this:

    def outputter
      opts.fetch(:out, $stdout)

But there didn't seem to be any way to set that option. Now there is.
This ought to be useful in CI situations (save / publish report as build artifact etc.)


xaviershay commented Jul 20, 2013

That was just away of breaking apart the dependency on IO. I'm not convinced it's worth cluttering the UI with this option, since cane > myfile.txt is a far more standard way of doing it.

@xaviershay xaviershay closed this Jul 20, 2013


svoynow commented Jul 20, 2013

I still think it's useful in the case of running it from the rake task, where mucking around with redirecting stdout is a bit of a pain.
At least that's my use case. I'm running this as part of a rake task that's running as a Jenkins build, and I want the cane output to a file so I can save it as a build artifact.

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