Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Foreman running guard with color ouput

I can run guard from within my foreman procfile - but the output is not as colorful as I'd like. The only color I see in my output is from Foreman...

I want to have a guardfile that manages rspec, cucumber and jasmine - AND have that nice color output when those tests run.

It would seem as if foreman ignores guard file settings. Any idea how to change that?

like image 493
Daniel D Avatar asked Feb 06 '12 02:02

Daniel D


2 Answers

Add the --tty option to your rspec guard cli:

guard "rspec", :version => 2, :cli => "--tty ...other options..."
like image 60
fkreusch Avatar answered Nov 11 '22 18:11

fkreusch


For version 4.5.0 of guard-rspec the following worked for me

guard :rspec, cmd_additional_args: "--tty", cmd: ...other...
like image 38
Ingo Avatar answered Nov 11 '22 17:11

Ingo