Cucumber 在 Windows 7(64 位)命令提示符下使用 ANSICON 1.6.0 提供彩色输出,但不再在 ConEmu 终端管理器中。
黄瓜
- Cucumber.yml 存在于 \config 文件夹中
- Cucumber.yml 包含
default: --color
动车组
- 设置 > 功能 > 注入 ConEmuHk 已选中
- 设置 > 功能 > ANSI X3.64 / xterm 256 颜色被选中
%ConEmuANSI%
返回"ON"
ls --color
确实返回彩色输出- 版本状态:141004预览
ConEmu 似乎很好,但考虑到命令提示符下的彩色输出工作,Cucumber 似乎配置正确。有任何想法吗?
Cucumber 的示例输出,根据要求(这些传递步骤以前会以绿色显示):
Scenario: Visit the client site # client\features\age_gate.feature:8
Given I am a new visitor # client/features/step_definitions/age_gate.rb:1
When I visit the client website # client/features/support/navigation.rb:1
Then I am shown the age gate # client/features/step_definitions/age_gate.rb:6