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

Automatically add ' | tapout progressbar' ? #5

Closed
doabit opened this issue Oct 30, 2013 · 5 comments
Closed

Automatically add ' | tapout progressbar' ? #5

doabit opened this issue Oct 30, 2013 · 5 comments

Comments

@doabit
Copy link
Contributor

doabit commented Oct 30, 2013

Is there a way to automatically add ' | tapout progressbar' ? I feel it's a bit verbose now. Thanks.

@trans
Copy link
Member

trans commented Oct 30, 2013

That, I think, would be rather tricky since it's utilizing a bash pipe.

There are a couple of things you can do though. First, if you are using Rake or another build tool, you can create a task that handles it. Or, you can create your own little bash script that does it. E.g. something like (untested):

#!/usr/bin/env sh
if [ -z "$rpt" ]; then
    ruby $@ - --tapy | tapout progressbar
else
    ruby $@ - --tapy | tapout $rpt
fi

@trans
Copy link
Member

trans commented Oct 30, 2013

For Rake usage you might be interested in this: https://github.com/rubyworks/tapout/wiki/Quick-Start

@doabit
Copy link
Contributor Author

doabit commented Oct 31, 2013

Thanks, i have tried https://github.com/rubyworks/tapout/wiki/Quick-Start, but it can't work well with rails 4, i think to add config like Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new would be great. then it could work with spring or zeus.

@trans
Copy link
Member

trans commented Oct 31, 2013

I'll have to look into that. Any other info or suggestions you can provide in that regard would be great.

@doabit
Copy link
Contributor Author

doabit commented Oct 31, 2013

Thanks

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

No branches or pull requests

2 participants