Difference between revisions of "Install ANSICON for coloured output"

From Test Automation Wiki
Jump to: navigation, search
Line 1: Line 1:
* Download and unzip [https://github.com/downloads/adoxa/ansicon/ansi160.zip | ansi160.zip]
+
* Download and unzip [https://github.com/adoxa/ansicon/releases/download/v1.66/ansi166.zip | ansi166.zip]
* open cmd and navigate to the unzipped folder
+
* Open cmd and navigate to the unzipped folder
 
* Navigate to x64 (if you have a 64 bit machine) otherwise navigate to x86
 
* Navigate to x64 (if you have a 64 bit machine) otherwise navigate to x86
* Type <code>ansicon.exe -h</code> and you will get the following:
+
* Type <code>ansicon.exe -i</code> and ansicon will be installed.
<source>
+
* Now navigate to any of your projects and run cucumber to see if ansicon has succesfully been installed
D:\Data\ansicon\x86&gt;ansicon.exe -h
+
* The ansicon warning should have dissapeared and text output should be colored
ANSICON by Jason Hood .
+
* If any issues occur you can type <code>ansicon.exe -u</code> in the ansicon folder to uninstall ansicon.
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.
 
</source>
 
* Execute 'ansicon.exe -i' to install and add ansicon to your Windows
 
* Run your cucumber test and you should get the coloured output result on Windows
 
  
 
'''source:''' http://qastuffs.blogspot.nl/2011/02/how-to-install-ansicon-for-cucumber-to.html
 
'''source:''' http://qastuffs.blogspot.nl/2011/02/how-to-install-ansicon-for-cucumber-to.html

Revision as of 10:57, 28 July 2016

  • Download and unzip | ansi166.zip
  • Open cmd and navigate to the unzipped folder
  • Navigate to x64 (if you have a 64 bit machine) otherwise navigate to x86
  • Type ansicon.exe -i and ansicon will be installed.
  • Now navigate to any of your projects and run cucumber to see if ansicon has succesfully been installed
  • The ansicon warning should have dissapeared and text output should be colored
  • If any issues occur you can type ansicon.exe -u in the ansicon folder to uninstall ansicon.

source: http://qastuffs.blogspot.nl/2011/02/how-to-install-ansicon-for-cucumber-to.html