Capturing mocha output