黄瓜在 Windows 中不显示彩色输出
这可能是非常愚蠢的事情,但我无法解决。
我将 Cucumber 版本升级到 v 0.10.0,现在测试(在 Win 7 上运行)未使用“漂亮”格式化程序显示彩色输出。
运行测试时,它会打印此错误:*** 警告:您必须使用 ANSICON 1.31 或更高版本 (http://adoxa.110mb.com/ansicon) 才能在 Windows 上获得彩色输出
到 http://adoxa.110mb.com/ansicon 但我不清楚应该如何升级它。有人知道如何升级我的 anscion 版本吗?
this is probably something really stupid but I can't work it out.
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.
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
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我工作的一位开发人员解决了这个问题。
您需要
不带空格
您的计算机(例如,D:\Cucumber\ansi160\x64)
ansicon.exe –i
或ansicon -i
并按 Enter 键One of the dev's at my work figured it out.
You need to
with no spaces
your machine (For example, D:\Cucumber\ansi160\x64)
ansicon.exe –i
ORansicon -i
and press Enter截至今天更新,http://adoxa.110mb.com/ansicon 不再可访问。
文件已上传至 https://github.com/adoxa/ansicon/downloads。
我尝试从 adoxa.3eeweb.com 下载,但 Chrome 警告我该文件“不常下载,可能很危险”。
所以我选择使用 github 上的文件。
除此之外,我只是按照上面提到的步骤操作,我的输出现在是彩色的。
Update as of today, http://adoxa.110mb.com/ansicon is no longer accessible.
Files have been uploaded to https://github.com/adoxa/ansicon/downloads.
I tried downloading from adoxa.3eeweb.com, but Chrome warned me that the file was "not commonly downloaded and could be dangerous."
So I opted with the file from github.
Besides that, I just followed the steps mentioned above and my output is now coloured.