I checked the chai code against and found that the currently accepted answer is either incorrect or incomplete.
If you read there, you will find that in each statement there really is a way to include your own message. The catch is that you may need to change the statement syntax to use should function calls instead.
(1).should.equal(0, 'This should fail'); /****** Output with (I believe) default reporter ***** * This should fail * + expected - actual * * -1 * +0 */
Please note that your result may look different if you use your own reporter. If you feel so inclined, perhaps you can include should functions to always include the line number in your statement output.
ty10r source share