带颜色输出的工头跑卫

带颜色输出的工头跑卫

本文介绍了带颜色输出的工头跑卫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在我的工头 procfile 中运行警卫 - 但输出并不像我想要的那样丰富多彩.我在输出中看到的唯一颜色来自 Foreman ...

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...

我想要一个管理 rspec、黄瓜和茉莉花的保护文件 - 并且在这些测试运行时有漂亮的颜色输出.

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?

推荐答案

将 --tty 选项添加到您的 rspec 防护 cli:

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

guard "rspec", :version => 2, :cli => "--tty ...other options..."

这篇关于带颜色输出的工头跑卫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 18:42