How to call ansicon.exe on windows when running cucumber tests

If you don't, you get:

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

So, is there a way to install a windows script in the default launch cucumber script so this always gets run before cucumber scripts run?

Thanks.

4 comments
Comment actions Permalink

RubyMine does ansi colors highlighting by itself, so there's no need to use ansicon actually. You can just specify environment variable ANSICON with any value in cucumber run configuration default settings and cucumber would provide colored output. We will add this environment variable in default configuration in future releases of RubyMine

0
Comment actions Permalink

Dennis:

Thanks. Noticed later that Rubymine was handling the colors. So, is what you are proposing a switch so that you don't get the ANSICON warning in Rubymine? That message shows up in cucumber if you run it in a shell on Windows as well if you don't first run ansicon in the shell.

Mark

0
Comment actions Permalink

Hi Denis,

Can you do the same for RSpec please?
1) ANSICON is turned on by default
2) rspec output is colored when "--color" execution argument is passed

0

Please sign in to leave a comment.