【发布时间】:2014-12-17 18:56:54
【问题描述】:
我正在尝试将调用测试的命令放置在 Rakefile 中,如下所示:
desc 'Start tests'
task :test do
%x{ bundle exec guard --clear }
end
虽然命令:bundle exec guard --clear 否则运行完美;通过 Rake 任务调用测试输出时,它似乎被抑制了。仅输出运行规范或启动 Guard 等通知。
注意:我知道测试确实有效,因为我有另一个通过 tmux 窗格颜色的通知系统。
我认为,我构建 Rake 任务的方式有问题吗?有什么想法吗?
【问题讨论】:
标签: ruby command-line rake guard