黄瓜在窗口中不显示彩色输出 [英] Cucumber not showing coloured output in windows
问题描述
这可能是真的很蠢,但我不能工作。
this is probably something really stupid but I can't work it out.
我将黄瓜的版本升级到v 0.10.0,现在的测试在Win 7)没有显示彩色输出与漂亮格式化。
I upgraded my version of cucumber to v 0.10.0 and now the test's (running on Win 7) are not showing coloured output with the "pretty" formatter.
运行测试时会显示以下错误: ***警告:您必须使用ANSICON 1.31或更高版本(http://adoxa.110mb .com / ansicon)在Windows上获得彩色输出
When tests are run it prints this error: *** WARNING: You must use ANSICON 1.31 or higher (http://adoxa.110mb.com/ansicon) to get coloured output on Windows
我去过 http://adoxa.110mb.com/ansicon ,但它不是显而易见的我如何应该升级它。任何人都知道如何升级我的版本的anscion?
I have been to http://adoxa.110mb.com/ansicon but it's not obvious to me how I should be upgrading it. Anyone know how to upgrade my version of anscion?
推荐答案
我的工作中的一个开发想出来。
One of the dev's at my work figured it out.
您需要
- 从https://github.com/adoxa/ansicon/downloads 并将其解压缩到目录
(不含空格) - 打开命令提示符并cd到您解压缩的文件夹
- 现在,进入x86或x64(取决于您的计算机的处理器)
您的计算机(例如,D:\Cucumber\ansi160\x64) - 键入
ansicon.exe -i
ORansicon -i
并按Enter键 - 任何打印ANSI颜色的程序现在都可以正常显示。
- Download Ansicon from https://github.com/adoxa/ansicon/downloads and unzip it into a directory
with no spaces - Open a command prompt and cd to the folder where you unzipped it
- Now, cd into either x86 or x64 (depending on your machine’s processor) and install it globally on
your machine (For example, D:\Cucumber\ansi160\x64) - Type
ansicon.exe –i
ORansicon -i
and press Enter - Any program that prints ANSI colors will now display properly on your machine.
这篇关于黄瓜在窗口中不显示彩色输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!