Cucumber not showing coloured output in windows
Solution 1
One of the dev's at my work figured it out.
You need to
- 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.
Solution 2
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.
Related videos on Youtube
James Hollingworth
Updated on January 26, 2020Comments
-
James Hollingworth over 4 years
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?
-
shingara over 13 yearsYou use bundler ? If yes have you add ansicon inside ?
-
-
corroded over 12 yearslink doesn't work anymore. it goes to a wordpress template theme site
-
Richard Fortune over 12 yearsHi guys, the link above no longer works either - can someone upload ansicon to a publicly accessible location?
-
Connor Clark about 9 yearsI followed the steps exactly, and I get a big error. Running Ruby after installing ansicon always crashes the interpreter. Have to restart my computer and delete the ansicon directory to get Ruby to work again. Opening debugger in VS: "Unhandled exception at 0x3CC2BE1F in ruby.exe: 0xC0000005: Access violation reading location 0x3CC2BE1F."
-
paul about 9 years@Hoten I am also facing same issue.