visionmedia/mocha — Issue #76: Strange output when tests fail
Author: WilsonPage
Created: 2011-11-24 17:30:36+00:00
State: open

**test/test.js**

describe('one', function(){
it('should throw error', function(){

[1,2,3].indexOf(1).should.equal(8);

});
})

describe('two', function(){
it('should pass', function(){

[1,2,3].indexOf(4).should.equal(-1);

});
})

**command:**

`mocha -r should`

**terminal output:**

..

←[91m Ô£û←[0m←[31m 1 of 2 tests failed←[0m←[90m:←[0m

←[0m 0) one should do something: ←[0m←[31mAssertionError: expected 0 to equal 8

←[0m←[90m
at Object.equal (C:\Users\Wilson\Documents\Sites\node_modules\should\lib\shoul
d.js:306:10)
at Test.fn (C:\Users\Wilson\Documents\Sites\meshmesh-node\app\test\first.t
est.js:3:30)
at Test.run (C:\Users\Wilson\Documents\Sites\node_modules\mocha\lib\test.j
s:80:29)
at Array. (C:\Users\Wilson\Documents\Sites\node_modules\mocha\l
ib\runner.js:269:12)
at EventEmitter._tickCallback (node.js:195:26)
←[0m

I thought failed tests were supposed to simple show a red dot amongst green dots. This is on a windows machine. If my tests all pass, terminal output is pretty as in example screen shots.