本文介绍了黄瓜在窗口中没有显示彩色输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是非常愚蠢的事情,但我无法解决.

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.

你需要

  1. https://github.com/adoxa/ansicon/downloads 下载 Ansicon 并解压到一个目录中
    没有空格
  2. 打开命令提示符并 cd 到您解压缩它的文件夹
  3. 现在,cd 到 x86 或 x64(取决于您机器的处理器)并在全局安装它
    您的机器(例如,D:Cucumberansi160x64)
  4. 键入 ansicon.exe –iansicon -i 并按 Enter
  5. 任何打印 ANSI 颜色的程序现在都可以在您的机器上正常显示.
  1. Download Ansicon from https://github.com/adoxa/ansicon/downloads and unzip it into a directory
    with no spaces
  2. Open a command prompt and cd to the folder where you unzipped it
  3. Now, cd into either x86 or x64 (depending on your machine’s processor) and install it globally on
    your machine (For example, D:Cucumberansi160x64)
  4. Type ansicon.exe –i OR ansicon -i and press Enter
  5. Any program that prints ANSI colors will now display properly on your machine.

这篇关于黄瓜在窗口中没有显示彩色输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-19 10:34