Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的黄瓜测试没有任何颜色。我希望有一种方法可以让 Cucumber 输出丰富多彩的结果......
查看有关为 Cucumber 调整控制台颜色的wiki 文章。如那篇文章所述,您可以通过发出以下命令来查看终端中可以使用的颜色:
ruby -e "require 'rubygems'; require 'term/ansicolor'; puts Term::ANSIColor.attributes"
更新
有关在使用自动测试时让 Cucumber 颜色正常工作的一些文档,请参阅此页面。