Calabash 在输出中没有颜色

Calabash no colors in output

我有一个 Android 设备连接到我的电脑。 运行 一个葫芦测试我使用以下命令:

calabash-android run <NAME>.apk features/<NAME>.feature

即使我安装了 ANSICON,这样做我总是会收到以下错误。

*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows

也没有颜色(在安装了 ANSICON 运行 的 64 位 win 上使用 MINGW32,并带有 -p 和 -i)。

$ ansicon.exe --help ANSICON by Jason Hood . Version 1.66 (21 September, 2013). Freeware. http://ansicon.adoxa.vze.com/

我怎样才能使这个工作?

如有任何帮助,我们将不胜感激!

谢谢!

我没试过,但我发现这个博客 post 写了同样的问题 http://qastuffs.blogspot.dk/2011/02/how-to-install-ansicon-for-cucumber-to.html 所以值得一试。

从博客复制

Anyway, here are the steps on how to install ansicon.exe:

  1. Download and unzip the file from https://github.com/adoxa/ansicon/downloads
  2. open cmd and navigate to the unzipped folder
  3. Navigate to x64 (if you have a 64 bit machine) otherwise navigate to x86
  4. Type ansicon.exe -h and you will get the following: D:\Data\ansicon\x86>ansicon.exe -h ANSICON by Jason Hood . Version 1.32 (22 December, 2010). Freeware. http://ansicon.adoxa.cjb.net/

Process ANSI escape sequences in Win32 console programs.

ansicon -i|I | -u|U ansicon [-m[]] [-p | -e|E string | -t|T [file(s)] | program [args]]

-i install - add ANSICON to the AutoRun entry (implies -p) -u uninstall - remove ANSICON from the AutoRun entry -I -U use local machine instead of current user -m use grey on black ("monochrome") or as default color -p
hook into the parent process -e echo string -E
echo string, don't append newline -t display files ("-" for stdin), combined as a single stream -T display files, name first, blank line before and after program run the specified program nothing run a new command processor, or display stdin if redirected

is one or two hexadecimal digits; please use "COLOR /?" for details. 5. Execute 'ansicon.exe -i' to install and add ansicon to your Windows 6. Run your cucumber 0.10.0 test and you should get the coloured output result on Windows