I couldn't get my casperjs asserts colored on my cmd.exe (Windows 7, x64). I followed ansicon.
If I understood right, asserts are colored automatically if ansicon is installed casperjs
Windows users will get colorized output if ansicon is installed.
Any ideas?
UPDATE
var casper = require('casper').create(),
utils = require('utils'),
http = require('http'),
fs = require('fs'),
colorizer = require('colorizer').create('Colorizer');
var xpath = require('casper').selectXPath;
casper.start('http://google.com/').then(function(response) {
casper.echo('This is supposed to be green', 'INFO');
});
casper.run();
CMD:
C:\Users\itsme\Desktop>casperjs test test.js
Test file: test.js
This is supposed to be green
C:\Users\itsme\Desktop>casperjs test test.js